Part Number Hot Search : 
TXV2N34 LHI1548 P6KE33A 684M3 THCV226 1N5366A EDS25 AM500
Product Description
Full Text Search
 

To Download HD404448 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  hd404449 series rev. 6.0 sept. 1998 description the hd404449 series is a hmcs400-series microcomputer designed to increase program productivity with large-capacity memory. each microcomputer has four timers, two serial interfaces, a/d converter, input capture circuit, 32-khz oscillator for clock, and four low-power dissipation modes. the hd404449 series includes three chips: the HD404448 with 8-kword rom; the hd404449 with 16- kword rom; and hd4074449 with 16-kword prom (ztat ? version). the hd4074449 is a prom version (ztat ? microcomputer). a program can be written to the prom by a prom writer, which can dramatically shorten system development periods and smooth the process from debugging to mass production. (the ztat ? version is 27256-compatible.) ztat ? : zero turn around time ztat is a trademark of hitachi ltd. features 8,192-word 10-bit rom (HD404448) 16,384-word 10-bit rom (hd404449 and hd4074449) 1,152-digit 4-bit ram 64 i/o pins, including 10 high-current pins (15 ma, max) four timer/counters eight-bit input capture circuit three timer outputs (including two pwm outputs) two event counter inputs (including one double-edge function) two clock-synchronous 8-bit serial interfaces a/d converter (4-channel 8-bit) built-in oscillators ? main clock: 4-mhz ceramic oscillator or crystal (an external clock is also possible) ? subclock: 32.768-khz crystal eleven interrupt sources ? four by external sources, including two double-edge function ? seven by internal sources
hd404449 series 2 subroutine stack up to 16 levels, including interrupts four low-power dissipation modes ? subactive mode ? standby mode ? watch mode ? stop mode one external input for transition from stop mode to active mode instruction cycle time: 1 m s (f osc = 4 mhz) two operating modes ? mcu mode (HD404448, hd404449) ? mcu/prom mode (hd4074449) ordering information type product name model name rom (words) package mask rom HD404448 HD404448h 8,192 80-pin plastic qfp (fp-80a) HD404448tf 80-pin plastic qfp (tfp-80f) hd404449 hd404449h 16,384 80-pin plastic qfp (fp-80a) hd404449tf 80-pin plastic qfp (tfp-80f) ztat ? hd4074449 hd4074449h 16,384 80-pin plastic qfp (fp-80a) hd4074449tf 80-pin plastic qfp (tfp-80f)
hd404449 series 3 pin arrangement fp-80a tfp-80f 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 (top view) 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 r8 3 r8 2 r8 1 r8 0 r7 3 r7 2 r7 1 r7 0 r6 3 r6 2 r6 1 r6 0 r5 3 /so 2 r5 2 /si 2 r5 1 / sck 2 r5 0 r4 3 /so 1 r4 2 /si 1 r4 1 / sck 1 r4 0 /evnd an 2 an 3 av ss test osc 1 osc 2 reset x1 x2 gnd d 0 d 1 d 2 d 3 d 4 d 5 d 6 d 7 d 8 d 9 d 10 d 11 d 12 / stopc d 13 / int 0 0 / int 1 r0 1 /int 2 r0 2 /int 3 r0 3 r1 0 r1 1 r1 2 r1 3 r2 0 r2 1 r2 2 r2 3 r3 0 /tob r3 1 /toc r3 2 /tod r3 3 / evnb an 1 an 0 av cc v cc rc 3 rc 2 rc 1 rc 0 rb 3 rb 2 rb 1 rb 0 ra 3 ra 2 ra 1 ra 0 r9 3 r9 2 r9 1 r9 0 r0
hd404449 series 4 pin description item symbol pin number i/o function power supply v cc 77 applies power voltage gnd 10 connected to ground test test 4 i used for factory testing only: connect this pin to v cc reset reset 7 i resets the mcu oscillator osc 1 5 i input/output pins for the internal oscillator circuit: connect them to a ceramic oscillator, crystal, or connect osc 1 to an external oscillator circuit osc 2 6o x1 8 i used for a 32.768-khz crystal for clock purposes. if not to be used, fix the x1 pin to v cc and leave the x2 pin open. x2 9 o port d 0 ? 11 11?2 i/o input/output pins addressed by individual bits; pins d 0 ? 9 are high-current pins that can each supply up to 15 ma d 12 , d 13 23, 24 i input pins addressable by individual bits r0 0 ?c 3 25?6 i/o input/output pins addressable in 4-bit units interrupt int 0 , int 1 , int 2 , int 3 24?7 i input pins for external interrupts stop clear stopc 23 i input pin for transition from stop mode to active mode serial sck 1 , sck 2 42, 46 i/o serial clock input/output pin interface si 1 , si 2 43, 47 i serial receive data input pin so 1 , so 2 44, 48 o serial transmit data output pin timer tob, toc, tod 37?9 o timer output pins evnb , evnd 40, 41 i event count input pins a/d converter av cc 78 power pin for a/d converter: connect it to the same potential as v cc , as physically close to the v cc pin as possible av ss 3 ground for av cc : connect it to the same potential as gnd, as physically close to the gnd pin as possible an 0 ?n 3 79, 80, 1, 2 i analog input pins for a/d converter
hd404449 series 5 block diagram system control external interrupt timer a timer b timer c timer d serial interface 1 serial interface 2 a/d converter internal data bus internal address bus ram (1,152 4 bits) w (2 bits) x (4 bits) y (4 bits) spx (4 bits) st (1 bit) ca (1 bit) a (4 bits) b (4 bits) sp (10 bits) pc (14 bits) instruction decoder cpu r0 r0 r0 r0 r1 r1 r1 r1 r2 r2 r2 r2 r3 r3 r3 r3 r4 r4 r4 r4 r5 r5 r5 r5 r6 r6 r6 r6 r7 r7 r7 r7 r8 r8 r8 r8 r9 r9 r9 r9 ra ra ra ra rb rb rb rb rc rc rc rc : data bus : si g nal line reset toc evnd tod int int int int si 2 so 2 sck 2 av cc av ss an 0 an 1 an 2 an 3 r0 port r1 port r2 port r3 port r4 port rc port 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 0 1 2 3 r5 port r6 port r7 port r8 port r9 port ra port rb port si so sck rom (16,384 10 bits) (8,192 10 bits) d port high current pins d d d d d d d d d d d d d d 0 1 2 3 4 5 6 7 8 9 10 11 12 13 0 1 2 3 evnb tob 1 1 1 spy (4 bits) alu test stopc osc 1 osc 2 x1 x2 v cc gnd
hd404449 series 6 memory map rom memory map the rom memory map is shown in figure 1 and described below. 0 15 16 63 64 4,095 4,096 16,383 0 $000f $0fff $1000 $1fff $2000 $3fff $0010 $003f $0040 vector address zero-page subroutine (64 words) pattern (4,096 words) HD404448 program (8,192 words) hd404449, hd4074449 program (16,384 words) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $0000 $0000 $0001 $0002 $0003 $0004 $0005 $0006 $0007 $0008 $0009 $000a $000b $000c $000d $000e $000f 0 1 jmpl instruction (jump to reset, stopc routine) jmpl instruction (jump to int routine) jmpl instruction (jump to timer a routine) jmpl instruction (jump to timer b, int routine) jmpl instruction (jump to timer c, int routine) jmpl instruction (jump to timer d, a/d routine) jmpl instruction (jump to int routine) jmpl instruction (jump to serial 1, serial 2 routine) 2 3 8,191 8,192 figure 1 rom memory map vector address area ($0000?000f): reserved for jmpl instructions that branch to the start addresses of the reset and interrupt routines. after mcu reset or an interrupt, program execution continues from the vector address. zero-page subroutine area ($0000?003f): reserved for subroutines. the program branches to a subroutine in this area in response to the cal instruction. pattern area ($0000?0fff): contains rom data that can be referenced with the p instruction. program area ($0000?1fff (HD404448), $0000?3fff (hd404449, hd4074449)): used for program coding. ram memory map the mcu contains a 1,152-digit 4-bit ram area consisting of a memory register area, a data area, and a stack area. in addition, an interrupt control bits area, special register area, and register flag area are mapped onto the same ram memory space as a ram-mapped register area outside the above areas. the ram memory map is shown in figure 2 and described as follows.
hd404449 series 7 a/d data register data (464 digits) v = 1 (bank = 1) 0 $000 $000 64 80 608 960 1023 $040 $050 4 5 6 7 0 3 12 13 14 15 8 9 10 11 16 17 32 35 18 19 20 63 $003 $004 $005 $006 $007 $008 $009 $00a $00b $00c $00d $00e $00f $010 $011 $012 $013 $014 $020 $023 $032 $033 $034 $035 $036 $037 $038 $03f $00a $00b $00e $00f w w r/w w w w w w w w w w w w w w w r r r r w r/w r/w r/w r/w r/w r/w $090 $25f 58 54 55 $3c0 $260 ram-mapped registers memory registers (mr) not used data (464 digits 2) v = 0 (bank 0) v = 1 (bank 1) data (144 digits) stack (64 digits) interrupt control bits area port mode register a serial mode register 1a serial data register 1 lower serial data register 1 upper timer mode register a timer mode register b1 timer b miscellaneous register timer mode register c1 timer c timer mode register b2 timer mode register d2 register flag area port r0 dcr port r1 dcr port r2 dcr port r3 dcr port d ? dcr port d ? dcr port d and d dcr not used v register 03 47 811 data (464 digits) v = 0 (bank = 0) the data area has two banks: bank 0 (v = 0) to bank 1 (v = 1) 10 11 14 15 timer read register b lower timer read register b upper timer read register c lower timer read register c upper timer write register b lower timer write register b upper timer write register c lower timer write register c upper r: w: r/w: $090 read only write only read/write note: $011 $012 w w r r 17 18 timer read register d lower timer read register d upper timer write register d lower timer write register d upper 144 w timer mode register d1 r/w r/w timer d timer mode register c2 21 $015 22 $016 r a/d data register lower 23 $017 36 $024 37 $025 38 $026 39 $027 40 $028 41 $029 42 $02a 43 $02b 24 25 27 26 28 29 30 31 $018 $019 $01a $01b $01c $01d $01e $01f $3ff a/d data register upper serial mode register 2a serial mode register 2b serial data register 2 lower serial data register 2 upper r w w w w w 60 44 45 46 47 port mode register b port mode register c detection edge select register 1 detection edge select register 2 serial mode register 1b system clock select register not used not used port r4 dcr port r5 dcr port r6 dcr port r7 dcr w w w w w w w w w w w w w $02c $02d $02e $02f $031 $030 53 48 49 50 51 52 two registers are mapped on the same area. * not used 752 $2f0 note r/w r/w r/w not used (pmra) (sm1a) (sr1l) (sr1u) (tma) (tmb1) (trbl/twbl) (trbu/twbu) (mis) (tmc1) (trcl/twcl) (trcu/twcu) (tmd1) (trdl/twdl) (trdu/twdu) (tmb2) (tmc2) (tmd2) (amr) (adrl) (adru) (sm2a) (sm2b) (sr2l) (sr2u) (pmrb) (pmrc) (sm1b) (ssr) (esr1) (esr2) (dcd0) (dcd1) (dcd2) (dcr0) (dcr1) (dcr2) (dcr3) (dcr4) (dcr5) (dcr6) (dcr7) (dcr8) (dcr9) (dcra) (dcrb) (dcrc) r/w r/w not used port r8 dcr port r9 dcr port ra dcr port rb dcr port rc dcr 59 57 56 $039 $03a $03b $03c (trbl) (trbu) (trcl) (trcu) (trdl) (trdu) (twbl) (twbu) (twcl) (twcu) (twdl) (twdu) * figure 2 ram memory map
hd404449 series 8 ram-mapped register area ($000?03f): interrupt control bits area ($000?003) this area is used for interrupt control bits (figure 3). these bits can be accessed only by ram bit manipulation instructions (sem/semd, rem/remd, and tm/tmd). however, note that not all the instructions can be used for each bit. limitations on using the instructions are shown in figure 4. special function register area ($004?01f, $024?03f) this area is used as mode registers and data registers for external interrupts, serial interface 1, serial interface 2, timer/counters, a/d converter, and as data control registers for i/o ports. the structure is shown in figures 2 and 5. these registers can be classified into three types: write-only (w), read-only (r), and read/write (r/w). ram bit manipulation instructions cannot be used for these registers. register flag area ($020?023) this area is used for the dton, wdon, and other register flags and interrupt control bits (figure 3). these bits can be accessed only by ram bit manipulation instructions (sem/semd, rem/remd, and tm/tmd). however, note that not all the instructions can be used for each bit. limitations on using the instructions are shown in figure 4. memory register (mr) area ($040?04f): consisting of 16 addresses, this area (mr0?r15) can be accessed by register-register instructions (lamr and xmra). the structure is shown in figure 6. data area ($090?2ef): 464 digits from $090 to $25f have two banks, which can be selected by setting the bank register (v: $03f). before accessing this area, set the bank register to the required value (figure 7). the area from $260 to $2ef is accessed without setting the bank register. stack area ($3c0?3ff): used for saving the contents of the program counter (pc), status flag (st), and carry flag (ca) at subroutine call (cal or call instruction) and for interrupts. this area can be used as a 16-level nesting subroutine stack in which one level requires four digits. the data to be saved and the save conditions are shown in figure 6. the program counter is restored by either the rtn or rtni instruction, but the status and carry flags can only be restored by the rtni instruction. any unused space in this area is used for data storage.
hd404449 series 9 0 1 2 3 bit 3 bit 2 bit 1 bit 0 imta (im of timer a) ifta (if of timer a) im1 (im of int 1 ) if1 (if of int 1 ) imtc (im of timer c) iftc (if of timer c) imtb (im of timer b) iftb (if of timer b) ims1 (im of serial interface 1) ifs1 (if of serial interface 1) imtd (im of timer d) iftd (if of timer d) $000 $001 $002 $003 interrupt control bits area im0 (im of int 0 ) if0 (if of int 0 ) rsp (reset sp bit) ie (interrupt enable flag) 32 33 34 35 icsf (input capture status flag) im3 (im of int 3 ) if3 (if of int 3 ) im2 (im of int 2 ) if2 (if of int 2 ) ims2 (im of serial interface 2) ifs2 (if of serial interface 2) imad (im of a/d) ifad (if of a/d) $020 $021 $022 $023 register flag area dton (direct transfer on flag) adsf (a/d start flag) wdon (watchdog on flag) lson (low speed on flag) icef (input capture error flag) rame (ram enable flag) not used if: im: ie: sp: interrupt request flag interrupt mask interrupt enable flag stack pointer bit 3 bit 2 bit 1 bit 0 figure 3 configuration of interrupt control bits and register flag areas
hd404449 series 10 ie im lson if icsf icef rame rsp wdon adsf not used dton sem/semd rem/remd tm/tmd allowed allowed allowed not executed allowed allowed not executed allowed inhibited allowed not executed inhibited allowed inhibited allowed not executed in active mode allowed allowed used in subactive mode not executed not executed inhibited note: wdon is reset by mcu reset or by stopc enable for stop mode cancellation. the rem or remd instuction must not be executed for adsf during a/d conversion. dton is always reset in active mode. if the tm or tmd instruction is executed for the inhibited bits or non-existing bits, the value in st becomes invalid. figure 4 usage limitations of ram bit manipulation instructions
hd404449 series 11 $000 $003 pmra $004 sm1a $005 sr1l $006 sr1u $007 tma $008 tmb1 $009 trbl/twbl $00a trbu/twbu $00b mis $00c tmc1 $00d trcl/twcl $00e trcu/twcu $00f tmd1 $010 trdl/twdl $011 trdu/twdu $012 tmb2 $013 tmc2 $014 tmd2 $015 amr $016 adrl $017 adru $018 sm2a $01b sm2b $01c sr2l $01d sr2u $01e $020 $023 pmrb $024 pmrc $025 esr1 $026 esr2 $027 sm1b $028 ssr $029 dcd0 $02c dcd1 $02d dcd2 $02e dcr0 $030 dcr1 $031 dcr2 $032 dcr3 $033 dcr4 $034 dcr5 $035 dcr6 $036 dcr7 $037 dcr8 $038 dcr9 $039 dcra $03a dcrb $03b dcrc $03c v $03f bit 3 bit 2 bit 1 interrupt control bits area r5 2 /si 2 r5 3 /so 2 r4 3 /so 1 r4 2 /si 1 serial transmit clock speed selection 1 serial data register 1 (lower digit) serial data register 1 (upper digit) * 1 * 2 clock source selection (timer a) clock source selection (timer b) timer b register (lower digit) timer b register (upper digit) * 3 r4 3 /so 1 pmos control interrupt frame period selection * 2 clock source selection (timer c) timer c register (lower digit) timer c register (upper digit) * 2 clock source selection (timer d) timer d register (lower digit) timer d register (upper digit) not used not used timer-b output mode selection not used timer-c output mode selection timer-d output mode selection * 4 not used * 5 analog channel selection a/d data register (lower digit) a/d data register (upper digit) r5 1 / sck 2 serial transmit clock speed selection 2 register flag area not used int 3 detection edge selection int 2 detection edge selection evnd detection edge selection not used not used * 8 * 9 * 10 * 11 not used port d 3 dcr port d 2 dcr port d 1 dcr port d 0 dcr port d 7 dcr port d 6 dcr port d 5 dcr port d 4 dcr port d 11 dcr port d 10 dcr port d 9 dcr port d 8 dcr not used port r0 3 dcr port r1 3 dcr port r2 3 dcr port r3 3 dcr port r4 3 dcr port r5 3 dcr port r6 3 dcr port r7 3 dcr not used not used not used r0 2 /int 3 r0 1 /int 2 r0 0 / int 1 d 13 / int 0 d 12 / stopc r4 0 /evnd r3 3 / evnb r4 1 / sck 1 bit 0 not used not used r5 3 /so 2 pmos control * 6 * 7 serial data register 2 (lower digit) serial data register 2 (upper digit) not used not used * 12 not used port r8 3 dcr port r9 3 dcr port ra 3 dcr port rb 3 dcr port rc 3 dcr port r0 2 dcr port r1 2 dcr port r2 2 dcr port r3 2 dcr port r4 2 dcr port r5 2 dcr port r6 2 dcr port r7 2 dcr port r8 2 dcr port r9 2 dcr port ra 2 dcr port rb 2 dcr port rc 2 dcr port r0 1 dcr port r1 1 dcr port r2 1 dcr port r3 1 dcr port r4 1 dcr port r5 1 dcr port r6 1 dcr port r7 1 dcr port r8 1 dcr port r9 1 dcr port ra 1 dcr port rb 1 dcr port rc 1 dcr port r0 0 dcr port r1 0 dcr port r2 0 dcr port r3 0 dcr port r4 0 dcr port r5 0 dcr port r6 0 dcr port r7 0 dcr port r8 0 dcr port r9 0 dcr port ra 0 dcr port rb 0 dcr port rc 0 dcr notes: 1. timer-a/time-base 2. auto-reload on/off 3. pull-up mos control 4. input capture selection 5. a/d conversion time 6. so 2 ouput control in idle states 7. serial clock source selection 2 8. so 1 output level control in idle states 9. serial clock source selection 1 10. 32-khz oscillation stop 11. 32-khz oscillation division ratio 12. system clock selection 13. bank 0, 1 selection not used * 13 figure 5 special function register area
hd404449 series 12 memory registers 64 65 66 67 68 69 70 71 73 74 75 76 77 78 79 72 $040 $041 $042 $043 $044 $045 $046 $047 $048 $049 $04a $04b $04c $04d $04e $04f 960 $3c0 1023 $3ff mr(0) mr(1) mr(2) mr(3) mr(4) mr(5) mr(6) mr(7) mr(8) mr(9) level 16 level 15 level 14 level 13 level 12 level 11 level 10 level 9 level 8 level 7 level 6 level 5 level 4 level 3 level 2 level 1 mr(10) mr(11) mr(12) mr(13) mr(14) mr(15) pc pc pc pc pc pc pc pc pc pc pc pc st pc ca pc 10 3 13 9 6 2 12 8 5 1 11 7 4 0 bit 3 bit 2 bit 1 bit 0 $3fc $3fd $3fe $3ff 1020 1021 1022 1023 pc ?c : st: status flag ca: carry flag program counter 13 stack area 0 figure 6 configuration of memory registers and stack area, and stack position bit initial value read/write bit name 3 not used 2 not used 0 0 r/w v0 1 not used v0 0 1 bank area selection bank 0 is selected bank 1 is selected note: after reset, the value in the bank register is 0, and therefore bank 0 is selected. bank register (v: $03f) figure 7 bank register (v)
hd404449 series 13 functional description registers and flags the mcu has nine registers and two flags for cpu operations. they are shown in figure 8 and described below. 30 30 30 30 30 30 0 0 0 13 95 1 (b) (a) (w) (x) (y) (spx) (spy) (ca) (st) (pc) (sp) 1111 accumulator b register w register x register y register spx register spy register carry status program counter initial value: 0, no r/w stack pointer initial value: $3ff, no r/w 0 0 initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: undefined, r/w initial value: 1, no r/w figure 8 registers and flags accumulator (a), b register (b): four-bit registers used to hold the results from the arithmetic logic unit (alu) and transfer data between memory, i/o, and other registers. w register (w), x register (x), y register (y): two-bit (w) and four-bit (x and y) registers used for indirect ram addressing. the y register is also used for d-port addressing.
hd404449 series 14 spx register (spx), spy register (spy): four-bit registers used to supplement the x and y registers. carry flag (ca): one-bit flag that stores any alu overflow generated by an arithmetic operation. ca is affected by the sec, rec, rotl, and rotr instructions. a carry is pushed onto the stack during an interrupt and popped from the stack by the rtni instruction?ut not by the rtn instruction. status flag (st): one-bit flag that latches any overflow generated by an arithmetic or compare instruction, not-zero decision from the alu, or result of a bit test. st is used as a branch condition of the br, brl, cal, and call instructions. the contents of st remain unchanged until the next arithmetic, compare, or bit test instruction is executed, but become 1 after the br, brl, cal, or call instruction is read, regardless of whether the instruction is executed or skipped. the contents of st are pushed onto the stack during an interrupt and popped from the stack by the rtni instruction?ut not by the rtn instruction. program counter (pc): 14-bit binary counter that points to the rom address of the instruction being executed. stack pointer (sp): ten-bit pointer that contains the address of the stack area to be used next. the sp is initialized to $3ff by mcu reset. it is decremented by 4 when data is pushed onto the stack, and incremented by 4 when data is popped from the stack. the top four bits of the sp are fixed at 1111, so a stack can be used up to 16 levels. the sp can be initialized to $3ff in another way: by resetting the rsp bit with the rem or remd instruction. reset the mcu is reset by inputting a high-level voltage to the reset pin. at power-on or when stop mode is cancelled, reset must be high for at least one t rc to enable the oscillator to stabilize. during operation, reset must be high for at least two instruction cycles. initial values after mcu reset are listed in table 1.
hd404449 series 15 table 1 initial values after mcu reset item abbr. initial value contents program counter (pc) $0000 indicates program execution point from start address of rom area status flag (st) 1 enables conditional branching stack pointer (sp) $3ff stack level 0 interrupt flags/mask interrupt enable flag (ie) 0 inhibits all interrupts interrupt request flag (if) 0 indicates there is no interrupt request interrupt mask (im) 1 prevents (masks) interrupt requests i/o port data register (pdr) all bits 1 enables output at level 1 data control register (dcd0 dcd2) all bits 0 turns output buffer off (to high impedance) (dcr0 dcrc) all bits 0 port mode register a (pmra) 0000 refer to description of port mode register a port mode register b (pmrb) - 000 refer to description of port mode register b port mode register c (pmrc) 0000 refer to description of port mode register c detection edge select register 1 (esr1) 0000 disables edge detection detection edge select register 2 (esr2) 00 - - disables edge detection timer/ counters, serial interface timer mode register a (tma) 0000 refer to description of timer mode register a timer mode register b1 (tmb1) 0000 refer to description of timer mode register b1 timer mode register b2 (tmb2) - - 00 refer to description of timer mode register b2 timer mode register c1 (tmc1) 0000 refer to description of timer mode register c1 timer mode register c2 (tmc2) - 000 refer to description of timer mode register c2 timer mode register d1 (tmd1) 0000 refer to description of timer mode register d1 timer mode register d2 (tmd2) 0000 refer to description of timer mode register d2 serial mode register 1a (sm1a) 0000 refer to description of serial mode register 1a serial mode register 1b (sm1b) - - 00 refer to description of serial mode register 1b serial mode register 2a (sm2a) 0000 refer to description of serial mode register 2a serial mode register 2b (sm2b) - 000 refer to description of serial mode register 2b prescaler s (pss) $000 prescaler w (psw) $00
hd404449 series 16 item abbr. initial value contents timer/ counters, serial interface timer counter a (tca) $00 timer counter b (tcb) $00 timer counter c (tcc) $00 timer counter d (tcd) $00 timer write register b (twbu, twbl) $x0 timer write register c (twcu, twcl) $x0 timer write register d (twdu, twdl) $x0 octal counter 000 a/d a/d mode register (amr) 00 - 0 refer to description of a/d mode register bit register low speed on flag (lson) 0 refer to description of operating modes watchdog timer on flag (wdon) 0 refer to description of timer c a/d start flag (adsf) 0 refer to description of a/d converter direct transfer on flag (dton) 0 refer to description of operating modes input capture status flag (icsf) 0 refer to description of timer d input capture error flag (icef) 0 refer to description of timer d others miscellaneous register (mis) 0000 refer to description of operating modes, and oscillator circuit system clock select register bits 2? (ssr2 ssr0) 00 - refer to description of operating modes, and oscillator circuit bank register (v) - - - 0 refer to description of ram memory map notes: 1. the statuses of other registers and flags after mcu reset are shown in the following table. 2. x indicates invalid value. ?indicates that the bit does not exist.
hd404449 series 17 item abbr. status after cancellation of stop mode by stopc input status after cancellation of stop mode by mcu reset status after all other types of reset carry flag (ca) pre-stop-mode values are not guaranteed; values must be initialized by program pre-stop-mode values are not guaranteed; values must be initialized by program accumulator (a) b register (b) w register (w) x/spx register (x/spx) y/spy register (y/spy) serial data register (srl, sru) a/d data register (adrl, adru) ram pre-stop-mode values are retained ram enable flag (rame) 1 0 0 port mode register 1 bit 2 (pmrc12) pre-stop-mode values are retained 00 system clock select register bit 3 (ssr3) interrupts the mcu has 11 interrupt sources: four external signals ( int 0 , int 1 , int 2 , int 3 ), four timer/counters (timers a, b, c, and d), two serial interfaces (serial 1, serial 2), and a/d converter. an interrupt request flag (if), interrupt mask (im), and vector address are provided for each interrupt source, and an interrupt enable flag (ie) controls the entire interrupt process. some vector addresses are shared by two different interrupts. they are timer b and int 2 , timer c and int 3 , timer d and a/d converter, and serial interface 1 and serial interface 2. so the type of request that has occurred must be checked at the beginning of interrupt processing. interrupt control bits and interrupt processing: locations $000 to $003 and $022 to $023 in ram are reserved for the interrupt control bits which can be accessed by ram bit manipulation instructions. the interrupt request flag (if) cannot be set by software. mcu reset initializes the interrupt enable flag (ie) and the if to 0 and the interrupt mask (im) to 1. a block diagram of the interrupt control circuit is shown in figure 9, interrupt priorities and vector addresses are listed in table 2, and interrupt processing conditions for the 11 interrupt sources are listed in table 3.
hd404449 series 18 an interrupt request occurs when the if is set to 1 and the im is set to 0. if the ie is 1 at that point, the interrupt is processed. a priority programmable logic array (pla) generates the vector address assigned to that interrupt source. the interrupt processing sequence is shown in figure 10 and an interrupt processing flowchart is shown in figure 11. after an interrupt is acknowledged, the previous instruction is completed in the first cycle. the ie is reset in the second cycle, the carry, status, and program counter values are pushed onto the stack during the second and third cycles, and the program jumps to the vector address to execute the instruction in the third cycle. program the jmpl instruction at each vector address, to branch the program to the start address of the interrupt program, and reset the if by a software instruction within the interrupt program. table 2 vector addresses and interrupt priorities reset/interrupt priority vector address reset, stopc * $0000 int 0 1 $0002 int 1 2 $0004 timer a 3 $0006 timer b, int 2 4 $0008 timer c, int 3 5 $000a timer d, a/d 6 $000c serial 1, serial 2 7 $000e note: * the stopc interrupt request is valid only in stop mode
hd404449 series 19 ie if0 im0 if1 im1 ifta imta iftb imtb iftc imtc iftd imtd $ 000,0 $ 000,2 $ 000,3 $ 001,0 $ 001,1 $ 001,2 $ 001,3 $ 002,0 $ 002,1 $ 002,2 $ 002,3 $ 003,0 $ 003,1 sequence control ?push pc/ca/st ?reset ie ?jump to vector address priority control logic vector address note: $m,n is ram address $m, bit number n. $ 003,2 $ 003,3 int 0 interrupt int 1 interrupt timer a interrupt timer b interrupt timer c interrupt timer d interrupt serial 1 interrupt if2 im2 if3 im3 if a/d im a/d $ 022,0 $ 022,1 $ 022,2 $ 022,3 $ 023,0 $ 023,1 ifs2 ims2 $ 023,2 $ 023,3 int 2 interrupt int 3 interrupt a/d interrupt serial 2 interrupt ifs1 ims1 figure 9 interrupt control circuit
hd404449 series 20 table 3 interrupt processing and activation conditions interrupt source interrupt control bit int 0 int 1 timer a timer b or int 2 timer c or int 3 timer d or a/d serial 1 or serial 2 ie 11 11 1 11 if0 . im0 10 00 0 00 if1 . im1 * 100000 ifta . imta ** 10000 iftb . imtb + if2 . im2 ** * 1000 iftc . imtc + if3 . im3 ** ** 100 iftd . imtd + ifad . imad ** ** * 10 ifs1 . ims1 + ifs2 . ims2 ** ** * * 1 note: bits marked * can be either 0 or 1. their values have no effect on operation. instruction cycles 123456 instruction execution * ie reset interrupt acceptance execution of jmpl instruction at vector address execution of instruction at start address of interrupt routine vector address generation note: * the stack is accessed and the ie reset after the instruction is executed, even if it is a two-cycle instruction. stacking figure 10 interrupt processing sequence
hd404449 series 21 power on reset = 1? reset mcu interrupt request? execute instruction pc (pc) + 1 ? pc $0002 ? pc $0004 ? pc $0006 ? pc $0008 ? pc $000a ? pc $000e ? ie = 1? accept interrupt ie 0 stack (pc) stack (ca) stack (st) ? int 0 interrupt? int 1 interrupt? timer-a interrupt? timer-b/int 2 interrupt? no yes no yes no yes yes yes yes yes yes no no no no ? ? ? (serial 1, serial 2 interrupt) pc $000c ? timer-d/a-d interrupt? yes no no timer-c/int 3 interrupt? figure 11 interrupt processing flowchart
hd404449 series 22 interrupt enable flag (ie: $000, bit 0): controls the entire interrupt process. it is reset by the interrupt processing and set by the rtni instruction, as listed in table 4. table 4 interrupt enable flag (ie: $000, bit 0) ie interrupt enabled/disabled 0 disabled 1 enabled external interrupts ( int 0 , int 1 , int 2 , int 3 ): four external interrupt signals. external interrupt request flags (if0, if1, if2, if3: $000, $001, $022): if0 and if1 are set at the falling edge of signals input to int 0 and int 1 , and if2 and if3 are set at the rising or falling edge of signals input to int 2 and int 3 , as listed in table 5. the int 2 and int 3 interrupt edges are selected by the detection edge select registers (esr1, esr2: $026, $027) as shown in figures 12 and 13. table 5 external interrupt request flags (if0?f3: $000, $001, $022) if0?f3 interrupt request 0no 1 yes bit initial value read/write bit name 3 0 w esr13 2 0 w esr12 0 0 w esr10 1 0 w esr11 detection edge selection register 1 (esr1: $026) esr11 0 1 esr10 0 1 0 1 int 2 detection edge no detection falling-edge detection rising-edge detection double-edge detection * esr13 0 1 esr12 0 1 0 1 int 3 detection edge no detection falling-edge detection rising-edge detection double-edge detection * note: * both falling and rising edges are detected. figure 12 detection edge selection register 1 (esr1)
hd404449 series 23 bit initial value read/write bit name 3 0 w esr23 2 0 w esr22 0 not used 1 not used detection edge selection register 2 (esr2: $027) esr23 0 1 esr22 0 1 0 1 evnd detection edge no detection falling-edge detection rising-edge detection double-edge detection * note: * both falling and rising edges are detected. figure 13 detection edge selection register 2 (esr2) external interrupt masks (im0, im1, im2, im3: $000, $001, $022): prevent (mask) interrupt requests caused by the corresponding external interrupt request flags, as listed in table 6. table 6 external interrupt masks (im0?m3: $000, $001, $022) im0?m3 interrupt request 0 enabled 1 disabled (masked) timer a interrupt request flag (ifta: $001, bit 2): set by overflow output from timer a, as listed in table 7. table 7 timer a interrupt request flag (ifta: $001, bit 2) ifta interrupt request 0no 1 yes
hd404449 series 24 timer a interrupt mask (imta: $001, bit 3): prevents (masks) an interrupt request caused by the timer a interrupt request flag, as listed in table 8. table 8 timer a interrupt mask (imta: $001, bit 3) imta interrupt request 0 enabled 1 disabled (masked) timer b interrupt request flag (iftb: $002, bit 0): set by overflow output from timer b, as listed in table 9. table 9 timer b interrupt request flag (iftb: $002, bit 0) iftb interrupt request 0no 1 yes timer b interrupt mask (imtb: $002, bit 1): prevents (masks) an interrupt request caused by the timer b interrupt request flag, as listed in table 10. table 10 timer b interrupt mask (imtb: $002, bit 1) imtb interrupt request 0 enabled 1 disabled (masked) timer c interrupt request flag (iftc: $002, bit 2): set by overflow output from timer c, as listed in table 11. table 11 timer c interrupt request flag (iftc: $002, bit 2) iftc interrupt request 0no 1 yes
hd404449 series 25 timer c interrupt mask (imtc: $002, bit 3): prevents (masks) an interrupt request caused by the timer c interrupt request flag, as listed in table 12. table 12 timer c interrupt mask (imtc: $002, bit 3) imtc interrupt request 0 enabled 1 disabled (masked) timer d interrupt request flag (iftd: $003, bit 0): set by overflow output from timer d, or by the rising or falling edge of signals input to evnd when the input capture function is used, as listed in table 13. table 13 timer d interrupt request flag (iftd: $003, bit 0) iftd interrupt request 0no 1 yes timer d interrupt mask (imtd: $003, bit 1): prevents (masks) an interrupt request caused by the timer d interrupt request flag, as listed in table 14. table 14 timer d interrupt mask (imtd: $003, bit 1) imtd interrupt request 0 enabled 1 disabled (masked) serial interrupt request flags (ifs1: $003, bit 2; ifs2: $023, bit 2) set when data transfer is completed or when data transfer is suspended, as listed in table 15. table 15 serial interrupt request flag (ifs1: $003, bit 2; ifs2: $023, bit 2) ifs1, ifs2 interrupt request 0no 1 yes
hd404449 series 26 serial interrupt masks (ims1: $003, bit 3; ims2: $023, bit 3): prevents (masks) an interrupt request caused by the serial interrupt request flag, as listed in table 16. table 16 serial interrupt mask (ims1: $003, bit 3; ims2: $023, bit 3) ims1, ims2 interrupt request 0 enabled 1 disabled (masked) a/d interrupt request flag (ifad: $023, bit 0): set at the completion of a/d conversion, as listed in table 17. table 17 a/d interrupt request flag (ifad: $023, bit 0) ifad interrupt request 0no 1 yes a/d interrupt mask (imad: $023, bit 1): prevents (masks) an interrupt request caused by the a/d interrupt request flag, as listed in table 18. table 18 a/d interrupt mask (imad: $023, bit 1) imad interrupt request 0 enabled 1 disabled (masked)
hd404449 series 27 operating modes the mcu has five operating modes as shown in table 19. the operations in each mode are listed in tables 20 and 21. transitions between operating modes are shown in figure 14. active mode: all mcu functions operate according to the clock generated by the system oscillators osc 1 and osc 2 . table 19 operating modes and clock status mode name active standby stop watch subactive * 2 activation method reset cancellation, interrupt request, stopc cancellation in stop mode, stop/sby instruction in subactive mode (when direct transfer is selected) sby instruction stop instruction when tma3 = 0 stop instruction when tma3 = 1 int 0 or timer a interrupt request from watch mode status system oscillator op op stopped stopped stopped subsystem oscillator op op op * 1 op op cancellation method reset input, stop/sby instruction reset input, interrupt request reset input, stopc input in stop mode reset input, int 0 or timer a interrupt request reset input, stop/sby instruction note: op implies in operation 1. operating or stopping the oscillator can be selected by setting bit 3 of the system clock select register (ssr: $029). 2. subactive mode is an optional function; specify it on the function option list.
hd404449 series 28 table 20 operations in low-power dissipation modes function stop mode watch mode standby mode subactive mode * 2 cpu reset retained retained op ram retained retained retained op timer a reset op op op timer b reset stopped op op timer c reset stopped op op timer d reset stopped op op serial 1, 2 reset stopped * 3 op op a/d reset stopped op stopped i/o reset * 1 retained retained op note: op implies in operation 1. output pins are at high impedance. 2. subactive mode is an optional function specified on the function option list. 3. transmission/reception is activated if a clock is input in external clock mode. however, all interrupts stop. table 21 i/o status in low-power dissipation modes output input standby mode, watch mode stop mode active mode, subactive mode d 0 ? 11 retained high impedance input enabled d 12 ? 13 input enabled r0?c retained or output of peripheral functions high impedance input enabled
hd404449 series 29 reset by reset input or by watchdog timer f osc : f x : cpu : clk : per : oscillate oscillate stop f cyc f cyc f osc : f x : cpu : clk : per : oscillate oscillate stop f w f cyc f osc : f x : cpu : clk : per : oscillate oscillate f cyc f cyc f cyc f osc : f x : cpu : clk : per : oscillate oscillate f cyc f w f cyc f osc : f x : cpu : clk : per : stop oscillate f sub f w f sub f osc : f x : cpu : clk : per : stop stop stop stop stop f osc : f x : cpu : clk : per : stop oscillate stop f w stop f osc : f x : cpu : clk : per : stop oscillate stop f w stop standby mode stop mode (tma3 = 0, ssr3 = 1) watch mode subactive mode (tma3 = 1) (tma3 = 1, lson = 0) (tma3 = 1, lson = 1) sby interrupt sby interrupt stop int 0 , timer a * 1 stop * 4 * 2 * 3 1. interrupt source 2. stop/sby (dton = 1, lson = 0) 3. stop/sby (dton = 0, lson = 0) 4. stop/sby (dton = don? care, lson = 1) f osc : f x : f cyc : f sub : f w : lson: dton: main oscillation frequency suboscillation frequency for time-base f osc /4 f x /8 or f x /4 (software selectable) f x /8 system clock clock for time-base clock for other peripheral functions low speed on flag direct transfer on flag active mode notes: cpu : clk : per : f osc : f x : cpu : clk : per : stop oscillate stop stop stop (tma3 = 0, ssr3 = 0) reset1 reset2 rame = 0 rame = 1 int 0 , timer a * 1 (tma3 = 0) stop stopc stopc stop figure 14 mcu status transitions
hd404449 series 30 standby mode: in standby mode, the oscillators continue to operate, but the clocks related to instruction execution stop. therefore, the cpu operation stops, but all ram and register contents are retained, and the d or r port status, when set to output, is maintained. peripheral functions such as interrupts, timers, and serial interface continue to operate. the power dissipation in this mode is lower than in active mode because the cpu stops. the mcu enters standby mode when the sby instruction is executed in active mode. standby mode is terminated by a reset input or an interrupt request. if it is terminated by reset input, the mcu is reset as well. after an interrupt request, the mcu enters active mode and executes the next instruction after the sby instruction. if the interrupt enable flag is 1, the interrupt is then processed; if it is 0, the interrupt request is left pending and normal instruction execution continues. a flowchart of operation in standby mode is shown in figure 15. standby oscillator: active peripheral clocks: active all other clocks: stop no yes no yes no yes no yes no yes no yes yes (sby only) watch oscillator: stop suboscillator: active peripheral clocks: stop all other clocks: stop restart processor clocks reset mcu execute next instruction accept interrupt restart processor clocks no yes if = 1, im = 0, and ie = 1? reset = 1? if0 ? im0 = 1? if1 ? im1 = 1? ifta ? imta = 1? iftb ? imtb + if2 ? im2 = 1? iftc ? imtc + if3 ? im3 = 1? iftd ? imtd + ifad ? imad = 1? no yes ifs1 ? ims1 + ifs2 ? ims2 = 1? no stop oscillator: stop suboscillator: active/stop peripheral clocks: stop all other clocks: stop reset = 1? stopc = 0? rame = 1 rame = 0 yes yes no no execute next instruction (sby only) (sby only) (sby only) (sby only) figure 15 mcu operation flowchart
hd404449 series 31 stop mode: in stop mode, all mcu operations stop and ram data is retained. therefore, the power dissipation in this mode is the least of all modes. the osc 1 and osc 2 oscillator stops. operation of the x1 and x2 oscillator can be selected by setting bit 3 of the system clock select register (ssr: $029; operating: ssr3 = 0, stop: ssr3 = 1) (figure 26). the mcu enters stop mode if the stop instruction is executed in active mode when bit 3 of timer mode register a (tma: $008) is set to 0 (tma3 = 0) (figure 41). stop mode is terminated by a reset input or a stopc input as shown in figure 16. reset or stopc must be applied for at least one t rc to stabilize oscillation (refer to the ac characteristics section). when the mcu restarts after stop mode is cancelled, all ram contents before entering stop mode are retained, but the accuracy of the contents of the accumulator, b register, w register, x/spx register, y/spy register, carry flag, and serial data register cannot be guaranteed.                        stop mode oscillator internal clock stop instruction execution t res 3 t rc (stabilization period) t res        reset stopc figure 16 timing of stop mode cancellation watch mode: in watch mode, the clock function (timer a) using the x1 and x2 oscillator operates but other function operations stop. therefore, the power dissipation in this mode is the second least to stop mode, and this mode is convenient when only clock display is used. in this mode, the osc 1 and osc 2 oscillator stops, but the x1 and x2 oscillator operates. the mcu enters watch mode if the stop instruction is executed in active mode when tma3 = 1, or if the stop or sby instruction is executed in subactive mode. watch mode is terminated by a reset input or a timer-a/ int 0 interrupt request. for details of reset input, refer to the stop mode section. when terminated by a timer-a/ int 0 interrupt request, the mcu enters active mode if lson is 0, or subactive mode if lson is 1. after an interrupt request is generated, the time required to enter active mode is t rc for a timer a interrupt, and t x (where t + t rc < t x < 2t + t rc ) for an int 0 interrupt, as shown in figure 17. operation during mode transition is the same as that at standby mode cancellation (figure 15).
hd404449 series 32 active mode watch mode active mode oscillation stabilization period interrupt strobe int interrupt request generation (during the transition from watch mode to active mode only) 0 ttt rc tx t: t : rc interrupt frame length oscillation stabilization period figure 17 interrupt frame subactive mode: the osc 1 and osc 2 oscillator stops and the mcu operates with a clock generated by the x1 and x2 oscillator. in this mode, functions other than a/d conversion operate. however, because the operating clock is slow, the power dissipation becomes low, next to watch mode. the cpu instruction execution speed can be selected as 244 m s or 122 m s by setting bit 2 (ssr2) of the system clock select register (ssr: $029). note that the ssr2 value must be changed in active mode. if the value is changed in subactive mode, the mcu may malfunction. when the stop or sby instruction is executed in subactive mode, the mcu enters either watch or active mode, depending on the statuses of the low speed on flag (lson: $020, bit 0) and the direct transfer on flag (dton: $020, bit 3). subactive mode is an optional function that the user must specify on the function option list. interrupt frame: in watch and subactive modes, clk is applied to timer a and the int 0 circuit. prescaler w and timer a operate as the time-base and generate the timing clock for the interrupt frame. three interrupt frame lengths (t) can be selected by setting the miscellaneous register (mis: $00c) (figure 18). in watch and subactive modes, the timer-a/ int 0 interrupt is generated synchronously with the interrupt frame. the interrupt request is generated synchronously with the interrupt strobe timing except during transition to active mode. the falling edge of the int 0 signal is input asynchronously with the interrupt frame timing, but it is regarded as input synchronously with the second interrupt strobe clock after the falling edge. an overflow and interrupt request in timer a is generated synchronously with the interrupt strobe timing.
hd404449 series 33 bit initial value read/write bit name 3 0 w mis3 2 0 w mis2 0 0 w mis0 1 0 w mis1 miscellaneous register (mis: $00c) mis1 0 mis0 t * 1 0 0.24414 ms t rc * 1 0.12207 ms 0.24414 ms * 2 7.8125 ms 62.5 ms oscillation circuit conditions external clock input ceramic oscillator or crystal 0 1 1 1 0 1 15.625 ms 125 ms not used notes: 1. 2. the values of t and t rc are applied when a 32.768-khz crystal oscillator is used. the value is applied only when direct transfer operation is used. buffer control. refer to figure 38. mis3 mis2 figure 18 miscellaneous register (mis) direct transition from subactive mode to active mode: available by controlling the direct transfer on flag (dton: $020, bit 3) and the low speed on flag (lson: $020, bit 0). the procedures are described below: set lson to 0 and dton to 1 in subactive mode. execute the stop or sby instruction. the mcu automatically enters active mode from subactive mode after waiting for the mcu internal processing time and oscillation stabilization time (figure 19). notes: 1. the dton flag ($020, bit 3) can be set only in subactive mode. it is always reset in active mode. 2. the transition time (t d ) from subactive mode to active mode: t rc < t d < t + t rc
hd404449 series 34 subactive mode interrupt strobe direct transfer completion timing mcu internal processing period oscillation stabilization time active mode t t rc t: t : rc stop/sby instruction execution (set lson = 0, dton = 1) interrupt frame length oscillation stabilization period figure 19 direct transition timing stop mode cancellation by stopc : the mcu enters active mode from stop mode by a stopc input as well as by reset. in either case, the mcu starts instruction execution from the starting address (address 0) of the program. however, the value of the ram enable flag (rame: $021, bit 3) differs between cancellation by stopc and by reset. when stop mode is cancelled by reset, rame = 0; when cancelled by stopc , rame = 1. reset can cancel all modes, but stopc is valid only in stop mode; stopc input is ignored in other modes. therefore, when the program requires to confirm that stop mode has been cancelled by stopc (for example, when the ram contents before entering stop mode are used after transition to active mode), execute the test instruction on the ram enable flag (rame) at the beginning of the program. mcu operation sequence: the mcu operates in the sequences shown in figures 20 to 22. it is reset by an asynchronous reset input, regardless of its status. the low-power mode operation sequence is shown in figure 22. with the ie flag cleared and an interrupt flag set together with its interrupt mask cleared, if a stop/sby instruction is executed, the instruction is cancelled (regarded as an nop) and the following instruction is executed. before executing a stop/sby instruction, make sure all interrupt flags are cleared or all interrupts are masked.
hd404449 series 35 power on reset = 1 ? rame = 0 reset mcu mcu operation cycle no yes figure 20 mcu operating sequence (power on)
hd404449 series 36 mcu operation cycle if = 1? instruction execution sby/stop instruction? pc next location pc vector address low-power mode operation cycle ie 0 stack (pc), (ca), (st) im = 0 and ie = 1? ? ? ? yes no no yes yes no if: im: ie: pc: ca: st: ? interrupt request flag interrupt mask interrupt enable flag program counter carry flag status flag figure 21 mcu operating sequence (mcu operation cycle)
hd404449 series 37 low-power mode operation cycle if = 1 and im = 0? hardware nop execution ? pc next iocation mcu operation cycle standby/watch mode if = 1 and im = 0? hardware nop execution pc next iocation ? instruction execution stop mode no yes no yes note: * for if and im operation, refer to figure 15. stopc = 0? rame = 1 reset mcu no yes * figure 22 mcu operating sequence (low-power mode operation) note: when the mcu is in watch mode or subactive mode, if the high level period before the falling edge of int 0 is shorter than the interrupt frame, int 0 is not detected. also, if the low level period after the falling edge of int 0 is shorter than the interrupt frame, int 0 is not detected. edge detection is shown in figure 23. the level of the int 0 signal is sampled by a sampling clock. when this sampled value changes to low from high, a falling edge is detected. in figure 24, the level of the int 0 signal is sampled by an interrupt frame. in (a) the sampled value is low at point a, and also low at point b. therefore, a falling edge is not detected. in (b), the sampled value is high at point a, and also high at point b. a falling edge is not detected in this case either.
hd404449 series 38 when the mcu is in watch mode or subactive mode, keep the high level and low level period of int 0 longer than interrupt frame. high low low int sampling 0 figure 23 edge detection a: low b: low int interrupt frame 0 a: high b: high int interrupt frame 0 (a) high level period (b) low level period figure 24 sampling example
hd404449 series 39 internal oscillator circuit a block diagram of the clock generation circuit is shown in figure 25. as shown in table 22, a ceramic oscillator or crystal oscillator can be connected to osc 1 and osc 2 , and a 32.768-khz oscillator can be connected to x1 and x2. the system oscillator can also be operated by an external clock. bit 1 (ssr1) of the system clock select register (ssr: $029) must be selected according to the frequency of the oscillator connected to osc 1 and osc 2 (figure 26). note: if the system clock select register (ssr: $029) setting does not match the oscillator frequency, subsystems using the 32.768-khz oscillation will malfunction. osc 2 osc 1 x1 x2 system oscillator sub- system oscillator 1/4 division circuit timing generator circuit system clock selection cpu with rom, ram, registers, flags, and i/o peripheral function interrupt time-base interrupt time-base clock selection 1/8 or 1/4 division circuit note timing generator circuit timing generator circuit 1/8 division circuit f w f sub t subcyc lson tma3 f cyc t cyc f osc f x t wcyc cpu per clk note: 1/8 or 1/4 division ratio can be selected by setting bit 2 of the system clock select register (ssr: $029). figure 25 clock generation circuit
hd404449 series 40 bit initial value read/write bit name 3 0 w ssr3 2 0 w ssr2 0 not used 1 0 w ssr1 system clock select register (ssr: $029) system clock selection 0.4 to 1.0 mhz 1.6 to 4.0 mhz ssr1 0 1 0 1 ratio selection f sub = f x /8 f sub = f x /4 ssr3 0 1 32-khz oscillation stop oscillation operates in stop mode oscillation stops in stop mode 32-khz oscillation division ssr2 figure 26 system clock select register gnd d 0 gnd x2 x1 reset osc 2 osc 1 test av ss figure 27 typical layouts of crystal and ceramic oscillator
hd404449 series 41 table 22 oscillator circuit examples circuit configuration circuit constants external clock operation external oscillator osc open 1 osc 2 ceramic oscillator (osc 1 , osc 2 ) osc 2 c 1 2 c osc 1 r f ceramic oscillator gnd ceramic oscillator: csa4.00mg (murata) r f = 1 m w 20% c 1 = c 2 = 30 pf 20% crystal oscillator (osc 1 , osc 2 ) c 1 2 c crystal oscillator gnd l s c r s c 0 f r osc 1 osc 2 osc 2 osc 1 r f = 1 m w 20% c 1 = c 2 = 10?2 pf 20% crystal: equivalent to circuit shown below c 0 = 7 pf max r s = 100 w max crystal oscillator (x1, x2) x1 c 1 2 c x2 crystal oscillator gnd l s c r s c 0 x1 x2 ceramic: 32.768 khz: mx38t (nippon denpa kogyo) c 1 = c 2 = 20 pf 20% r s : 14 k w c 0 : 1.5 pf notes: 1. since the circuit constants change depending on the crystal or ceramic resonator and stray capacitance of the board, the user should consult with the crystal or ceramic oscillator manufacturer to determine the circuit parameters. 2. wiring among osc 1 , osc 2 , x1, x2, and elements should be as short as possible, and must not cross other wiring (see figure 27). 3. if the 32.768-khz crystal oscillator is not used, the x1 pin must be fixed to gnd and x2 must be open.
hd404449 series 42 input/output the mcu has 64 input/output pins (d 0 ? 11 , r0 0 ?c 3 ) and 2 input pins (d 12 , d 13 ). the features are described below. 10 pins (d 0 ? 9 ) are high-current input/output pins. the d 12 , d 13 , r0 0 ?0 2 , and r3 0 ?5 3 input/output pins are multiplexed with peripheral function pins such as for the timers or serial interface. for these pins, the peripheral function setting is done prior to the d or r port setting. therefore, when a peripheral function is selected for a pin, the pin function and input/output selection are automatically switched according to the setting. input or output selection for input/output pins and port or peripheral function selection for multiplexed pins are set by software. peripheral function output pins are cmos output pins. only the r4 3 /so 1 and r5 3 /so 2 pins can be set to nmos open-drain output by software. in stop mode, the mcu is reset, and therefore peripheral function selection is cancelled. input/output pins are in high-impedance state. each input/output pin has a built-in pull-up mos, which can be individually turned on or off by software. i/o buffer configuration is shown in figure 28, programmable i/o circuits are listed in table 23, and i/o pin circuit types are shown in table 24. table 23 programmable i/o circuits mis3 (bit 3 of mis) 0 1 dcd, dcr 0 1 0 1 pdr 01010 101 cmos buffer pmos ?n on nmos on on pull-up mos on?n note: ?indicates off status.
hd404449 series 43 mis3 input control signal v cc pull-up mos dcd, dcr pdr input data v cc hlt pull-up control signal buffer control signal output data figure 28 i/o buffer configuration
hd404449 series 44 table 24 circuit configurations of i/o pins i/o pin type circuit pins input/output pins v cc v cc pull-up control signal buffer control signal output data input data hlt mis3 dcd, dcr pdr input control signal d 0 ? 11 , r0 0 ?0 3 r1 0 ?1 3 , r2 0 ?2 3 r3 0 ?3 3 , r4 0 ?4 2 r5 0 ?5 2 , r6 0 ?6 3 r7 0 ?7 3 , r8 0 ?8 3 r9 0 ?9 3 , ra 0 ?a 3 rb 0 ?b 3 , rc 0 ?c 3 v cc v cc pull-up control signal buffer control signal output data input data hlt mis3 dcr pdr input control signal mis2, sm2b2 r4 3 , r5 3 input pins input data input control signal d 12 , d 13 peripheral function pins input/ output pins v cc v cc pull-up control signal output data input data hlt mis3 sck , 1 sck 2 sck , 1 sck 2 sck 1 , sck 2 output pins v cc v cc pull-up control signal pmos control signal output data hlt mis3 so , mis2, sm2b2 1 so 2 so 1 , so 2 v cc v cc pull-up control signal output data hlt mis3 tob, toc, tod tob, toc, tod
hd404449 series 45 i/o pin type circuit pins input pins v cc input data si 1 , si 2 ,, int 1 , etc hlt mis3 pdr si 1 , si 2 , int 1 , int 2 , int 3 , evnb , evnd input data int , stopc 0 int 0 , stopc notes: 1. the mcu is reset in stop mode, and peripheral function selection is cancelled. the hlt signal becomes low, and input/output pins enter high-impedance state. 2. the hlt signal is 1 in watch and subactive modes. d port (d 0 ? 13 ): consist of 12 input/output pins and 2 input pins addressed by one bit. d 0 ? 11 are high- current i/o pins, and d 12 and d 13 are input-only pins. pins d 0 ? 11 are set by the sed and sedd instructions, and reset by the red and redd instructions. output data is stored in the port data register (pdr) for each pin. all pins d 0 ? 13 are tested by the td and tdd instructions. the on/off statuses of the output buffers are controlled by d-port data control registers (dcd0?cd2: $02c?02e) that are mapped to memory addresses (figure 29). pins d 12 and d 13 are multiplexed with peripheral function pins stopc and i nt 0 , respectively. the peripheral function modes of these pins are selected by bits 2 and 3 (pmrc2, pmrc3) of port mode register c (pmrc: $025) (figure 30). r ports (r0 0 ?c 3 ): 52 input/output pins addressed in 4-bit units. data is input to these ports by the lar and lbr instructions, and output from them by the lra and lrb instructions. output data is stored in the port data register (pdr) for each pin. the on/off statuses of the output buffers of the r ports are controlled by r-port data control registers (dcr0?crc: $030?03c) that are mapped to memory addresses (figure 29). pins r0 0 ?0 2 are multiplexed with peripheral pins i nt 1 ?nt 3 , respectively. the peripheral function modes of these pins are selected by bits 0? (pmrb0?mrb2) of port mode register b (pmrb: $024) (figure 31). pins r3 0 ?3 2 are multiplexed with peripheral pins tob, toc, and tod, respectively. the peripheral function modes of these pins are selected by bits 0 and 1 (tmb20, tmb21) of timer mode register b2 (tmb2: $013), bits 0? (tmc20?mc22) of timer mode register c2 (tmc2: $014), and bits 0? (tmd20?md23) of timer mode register d2 (tmd2: $015) (figures 32, 33, and 34). pins r3 3 and r4 0 are multiplexed with peripheral pins evnb and evnd, respectively. the peripheral function modes of these pins are selected by bits 0 and 1 (pmrc0, pmrc1) of port mode register c (pmrc: $025) (figure 30). pins r4 1 ?4 3 are multiplexed with peripheral pins sck 1 , si 1 , and so 1 , respectively. the peripheral function modes of these pins are selected by bit 3 (sm1a3) of serial mode register 1a (sm1a: $005), and bits 0 and 1 (pmra0, pmra1) of port mode register a (pmra: $004), as shown in figures 35 and 36.
hd404449 series 46 ports r5 1 ?5 3 are multiplexed with peripheral function pins sck 2 , si 2 , so 2 , respectively. the function modes of these pins can be selected by individual pins, by 2a setting bit 3 (sm2a3) of serial mode register 2a (sm2a: $01b), and bits 2 and 3 (pmra2, pmra3) of port mode register a (pmra: $004) (figures 36 and 37). pull-up mos transistor control: a program-controlled pull-up mos transistor is provided for each input/output pin other than input-only pins d 12 and d 13 . the on/off status of all these transistors is controlled by bit 3 (mis3) of the miscellaneous register (mis: $00c), and the on/off status of an individual transistor can also be controlled by the port data register (pdr) of the corresponding pin?nabling on/off control of that pin alone (table 23 and figure 38). the on/off status of each transistor and the peripheral function mode of each pin can be set independently. how to deal with unused i/o pins: i/o pins that are not needed by the user system (floating) must be connected to v cc to prevent lsi malfunctions due to noise. these pins must either be pulled up to v cc by their pull-up mos transistors or by resistors of about 100 k w .
hd404449 series 47 bit initial value read/write bit name 3 0 w dcd03, 2 0 w dcd02, 0 0 w dcd00, 1 0 w dcd01, dcd0, dcd1 data control register dcd13 dcd12 dcd10 dcd11 bit initial value read/write bit name 3 0 w dcd23 2 0 w dcd22 0 0 w dcd20 1 0 w dcd21 dcd2 (dcd0 to 2: $02c to $02e) (dcr0 to c: $030 to $03c) bit initial value read/write bit name correspondence between ports and dcd/dcr bits 0 1 dcd0 dcd1 dcd2 dcr0 dcr1 dcr2 dcr3 dcr4 dcr5 dcr6 dcr7 dcr8 dcr9 dcra dcrb dcrc off (high-impedance) on 3 0 w dcr03 2 0 w dcr02 0 0 w dcr00 1 0 w dcr01 dcrc3 dcrc2 dcrc0 dcrc1 dcr0 to dcrc all bits cmos buffer on/off selection register name d 3 d 7 d 11 r0 3 r1 3 r2 3 r3 3 r4 3 r5 3 r6 3 r7 3 r8 3 r9 3 ra 3 rb 3 rc 3 bit 3 d 2 d 6 d 10 r0 2 r1 2 r2 2 r3 2 r4 2 r5 2 r6 2 r7 2 r8 2 r9 2 ra 2 rb 2 rc 2 bit 2 d 1 d 5 d 9 r0 1 r1 1 r2 1 r3 1 r4 1 r5 1 r6 1 r7 1 r8 1 r9 1 ra 1 rb 1 rc 1 bit 1 d 0 d 4 d 8 r0 0 r1 0 r2 0 r3 0 r4 0 r5 0 r6 0 r7 0 r8 0 r9 0 ra 0 rb 0 rc 0 bit 0 figure 29 data control registers (dcd, dcr)
hd404449 series 48 bit initial value read/write bit name 3 0 w pmrc3 2 0 w pmrc2 * 0 0 w pmrc0 1 0 w pmrc1 port mode register c (pmrc: $025) pmrc0 0 1 r3 3 pmrc1 0 1 r4 0 /evnd mode selection r4 0 evnd r3 3 / evnb mode selection evnb pmrc2 0 1 d 12 stopc pmrc3 0 1 d 13 d 13 / int 0 mode selection int 0 d 12 / stopc mode selection note: * pmrc2 is reset to 0 only by reset input. when stopc is input in stop mode, pmrc2 is not reset but retains its value. figure 30 port mode register c (pmrc )
hd404449 series 49 bit initial value read/write bit name 3 not used 2 0 w pmrb2 0 0 w pmrb0 1 0 w pmrb1 pmrb0 0 1 r0 0 / int 1 mode selection r0 0 int 1 port mode register b (pmrb: $024) pmrb1 0 1 r0 1 /int 2 mode selection r0 1 int 2 pmrb2 0 1 r0 2 /int 3 mode selection r0 2 int 3 figure 31 port mode register b (pmrb) bit initial value read/write bit name 3 not used 2 not used 0 0 r/w tmb20 1 0 r/w tmb21 timer mode register b2 (tmb2: $013) tmb21 0 1 tmb20 0 1 0 1 r3 0 /tob mode selection r3 0 tob tob tob r3 0 port toggle output 0 output 1 output figure 32 timer mode register b2 (tmb2)
hd404449 series 50 bit initial value read/write bit name 3 not used 2 0 r/w tmc22 0 0 r/w tmc20 1 0 r/w tmc21 timer mode register c2 (tmc2: $014) tmc22 tmc20 0 1 0 1 0 1 0 1 tmc21 0 1 0 1 0 1 r3 1 /toc mode selection r3 1 toc toc toc toc r3 1 port toggle output 0 output 1 output inhibited pwm output figure 33 timer mode register c2 (tmc2)
hd404449 series 51 bit initial value read/write bit name 3 0 r/w tmd23 2 0 r/w tmd22 0 0 r/w tmd20 1 0 r/w tmd21 timer mode register d2 (tmd2: $015) tmd22 tmd20 0 1 0 1 0 1 0 1 tmd21 0 1 0 1 0 1 r3 2 /tod mode selection r3 2 tod tod tod tod r3 2 r3 2 port toggle output 0 output 1 output inhibited pwm output input capture (r3 2 port) tmd23 0 1 don't care don't care don't care figure 34 timer mode register d2 (tmd2)
hd404449 series 52 bit initial value read/write bit name 3 0 w sm1a3 2 0 w sm1a2 0 0 w sm1a0 1 0 w sm1a1 serial mode register 1a (sm1a: $005) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 output output output output output output output input prescaler prescaler prescaler prescaler prescaler prescaler system clock external clock ? 2048 ? 512 ? 128 ? 32 ? 8 ? 2 prescaler division ratio sm1a2 sm1a0 sm1a1 clock source sm1a3 0 1 r4 1 / sck 1 mode selection sck 1 r4 1 sck 1 figure 35 serial mode register 1a (sm1a)
hd404449 series 53 pmra0 0 1 r4 3 /so 1 mode selection r4 3 so 1 bit initial value read/write bit name 3 0 w pmra3 2 0 w pmra2 0 0 w pmra0 1 0 w pmra1 port mode register a (pmra: $004) pmra2 0 1 r5 3 /so 2 mode selection r5 3 so 2 pmra3 0 1 r5 2 /si 2 mode selection r5 2 si 2 pmra1 0 1 r4 2 /si 1 mode selection r4 2 si 1 figure 36 port mode register a (pmra)
hd404449 series 54 bit initial value read/write bit name 3 0 w sm2a3 2 0 w sm2a2 0 0 w sm2a0 1 0 w sm2a1 serial mode register 2a (sm2a: $01b) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 output output output output output output output input prescaler prescaler prescaler prescaler prescaler prescaler system clock external clock ? 2048 ? 512 ? 128 ? 32 ? 8 ? 2 prescaler division ratio sm2a2 sm2a0 sm2a1 clock source sm2a3 0 1 r5 1 / sck 2 mode selection sck 2 r5 1 sck 2 figure 37 serial mode register 2a (sm2a) bit initial value read/write bit name 3 0 w mis3 2 0 w mis2 0 0 w mis0 1 0 w mis1 mis2 cmos buffer on/off selection for pin r4 3 /so 1 miscellaneous register (mis: $00c) 0 1 on off refer to figure 18 in the operation modes section. t rc selection. mis3 0 1 pull-up mos on/off selection off on mis1 mis0 figure 38 miscellaneous register (mis)
hd404449 series 55 prescalers the mcu has the following two prescalers, s and w. the prescaler operating conditions are listed in table 25, and the prescaler output supply is shown in figure 39. the timer a? input clocks except external events and the serial transmit clock except the external clock are selected from the prescaler outputs, depending on corresponding mode registers. prescaler operation prescaler s: 11-bit counter that inputs a system clock signal. after being reset to $000 by mcu reset, prescaler s divides the system clock. prescaler s keeps counting, except in stop, watch, and subactive modes and at mcu reset. prescaler w: five-bit counter that inputs the x1 input clock signal (32-khz crystal oscillation) divided by eight. after being reset to $00 by mcu reset, prescaler w divides the input clock. prescaler w can be reset by software. table 25 prescaler operating conditions prescaler input clock reset conditions stop conditions prescaler s system clock (in active and standby mode), subsystem clock (in subactive mode) mcu reset mcu reset, stop mode, watch mode prescaler w 32-khz crystal oscillation software mcu reset, stop mode subsystem clock prescaler w system clock prescaler s clock selector timer a timer b timer c timer d serial 1 serial 2 f /8 x f /4 or x f /8 x figure 39 prescaler output supply
hd404449 series 56 timers the mcu has four timer/counters (a to d). timer a: free-running timer timer b: multifunction timer timer c: multifunction timer timer d: multifunction timer timer a is an 8-bit free-running timer. timers b? are 8-bit multifunction timers, whose functions are listed in table 26. the operating modes are selected by software. table 26 timer functions functions timer a timer b timer c timer d clock source prescaler s available available available available prescaler w available external event available available timer functions free-running available available available available time-base available event counter available available reload available available available watchdog available input capture available timer outputs toggle available available available 0 output available available available 1 output available available available pwm available available note: ?means not available.
hd404449 series 57 timer a timer a functions: timer a has the following functions. free-running timer clock time-base the block diagram of timer a is shown in figure 40. 1/4 1/2 32.768-khz oscillator system clock prescaler w (psw) selector selector prescaler s (pss) selector internal data bus timer a interrupt request flag (ifta) clock overflow timer counter a (tca) timer mode register a (tma) 3 2 f 1/2 tw cyc f tw cyc per 2 4 8 32 128 512 1024 2048 ? ? ? ? ? ? ? ? 2 8 16 32 ? ? ? ? w w figure 40 timer a block diagram timer a operations: free-running timer operation: the input clock for timer a is selected by timer mode register a (tma: $008). timer a is reset to $00 by mcu reset and incremented at each input clock. if an input clock is applied to timer a after it has reached $ff, an overflow is generated, and timer a is reset to $00. the overflow sets the timer a interrupt request flag (ifta: $001, bit 2). timer a continues to be incremented after reset to $00, and therefore it generates regular interrupts every 256 clocks. clock time-base operation: timer a is used as a clock time-base by setting bit 3 (tma3) of timer mode register a (tma: $008) to 1. the prescaler w output is applied to timer a, and timer a generates interrupts at the correct timing based on the 32.768-khz crystal oscillation. in this case, prescaler w and timer a can be reset to $00 by software.
hd404449 series 58 registers for timer a operation: timer a operating modes are set by the following registers. timer mode register a (tma: $008): four-bit write-only register that selects timer a? operating mode and input clock source as shown in figure 41. bit initial value read/write bit name 3 0 w tma3 2 0 w tma2 0 0 w tma0 1 0 w tma1 timer mode register a (tma: $008) 0 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 pss pss pss pss pss pss pss pss psw psw psw psw psw operating mode timer a mode tma3 tma1 tma2 tma0 source prescaler 2048t cyc 1024t cyc 512t cyc 128t cyc 32t cyc 8t cyc 4t cyc 2t cyc input clock frequency 0 1 1 32t wcyc 16t wcyc 8t wcyc 2t wcyc 1/2t wcyc time-base mode 0 0 1 1 0 1 1 inhibited psw and tca reset don't care notes: 1. 2. 3. t wcyc = 244.14 s (when a 32.768-khz crystal oscillator is used) timer counter overflow output period (seconds) = input clock period (seconds) 256. the division ratio must not be modified during time-base mode operation, otherwise an overflow cycle error will occur. figure 41 timer mode register a (tma)
hd404449 series 59 timer b timer b functions: timer b has the following functions. free-running/reload timer external event counter timer output operation (toggle, 0, and 1 outputs) the block diagram of timer b is shown in figure 42. system clock evnb tob timer output control selector prescaler s (pss) clock timer read register bu (trbu) timer read register bl (trbl) timer counter b (tcb) timer write register bu (twbu) timer write register bl (twbl) timer mode register b1 (tmb1) timer mode register b2 (tmb2) timer b interrupt request flag (iftb) per 3 2 internal data bus 2 4 8 32 128 512 2048 ? ? ? ? ? ? ? free-running/ reload control overflow timer output control logic figure 42 timer b block diagram
hd404449 series 60 timer b operations: free-running/reload timer operation: the free-running/reload operation, input clock source, and prescaler division ratio are selected by timer mode register b1 (tmb1: $009). timer b is initialized to the value set in timer write register b (twbl: $00a, twbu: $00b) by software and incremented by one at each clock input. if an input clock is applied to timer b after it has reached $ff, an overflow is generated. in this case, if the reload timer function is enabled, timer b is initialized to its initial value set in timer write register b; if the free-running timer function is enabled, the timer is initialized to $00 and then incremented again. the overflow sets the timer b interrupt request flag (iftb: $002, bit 0). iftb is reset by software or mcu reset. refer to figure 3 and table 1 for details. external event counter operation: timer b is used as an external event counter by selecting external event input as the input clock source. in this case, pin r3 3 / evnb must be set to evnb by port mode register c (pmrc: $025). timer b is incremented by one at each falling edge of signals input to pin evnb . other operations are basically the same as the free-running/ reload timer operation. timer output operation: the following three output modes can be selected for timer b by setting timer mode register b2 (tmb2: $013). ? toggle ? 0 output ? 1 output by selecting the timer output mode, pin r3 0 /tob is set to tob. the output from tob is reset low by mcu reset. ? toggle output: when toggle output mode is selected, the output level is inverted if a clock is input after timer b has reached $ff. by using this function and reload timer function, clock signals can be output at a required frequency for the buzzer. the output waveform is shown in figure 43. ? 0 output: when 0 output mode is selected, the output level is pulled low if a clock is input after timer b has reached $ff. note that this function must be used only when the output level is high. ? 1 output: when 1 output mode is selected, the output level is set high if a clock is input after timer b has reached $ff. note that this function must be used only when the output level is low.
hd404449 series 61 t (n + 1) t 256 t t (256 ?n) tmc13 = 0 the waveform is always fixed low when n = $ff. t: n: tmc13 = 1 input clock period to counter (figures 52 and 59) the value of the timer write register note: tmd13 = 0 tmd13 = 1 256 clock cycles 256 clock cycles free-running timer toggle output waveform (timers b, c, and d) pwm output waveform (timers c and d) (256 ?n) clock cycles (256 ?n) clock cycles reload timer figure 43 timer output waveform registers for timer b operation: by using the following registers, timer b operation modes are selected and the timer b count is read and written. ? timer mode register b1 (tmb1: $009) ? timer mode register b2 (tmb2: $013) ? timer write register b (twbl: $00a, twbu: $00b) ? timer read register b (trbl: $00a, trbu: $00b) ? port mode register c (pmrc: $025) timer mode register b1 (tmb1: $009): four-bit write-only register that selects the free- running/reload timer function, input clock source, and the prescaler division ratio as shown in figure 44. it is reset to $0 by mcu reset.
hd404449 series 62 writing to this register is valid from the second instruction execution cycle after the execution of the previous timer mode register b1 write instruction. setting timer b? initialization by writing to timer write register b (twbl: $00a, twbu: $00b) must be done after a mode change becomes valid. bit initial value read/write bit name 3 0 w tmb13 2 0 w tmb12 0 0 w tmb10 1 0 w tmb11 timer mode register b1 (tmb1: $009) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2048t cyc 512t cyc 128t cyc 32t cyc 8t cyc 4t cyc 2t cyc tmb12 tmb10 tmb11 input clock period and input clock source r3 3 / evnb (external event input) tmb13 0 1 free-running/reload timer selection free-running timer reload timer figure 44 timer mode register b1 (tmb1) timer mode register b2 (tmb2: $013): two-bit read/write register that selects the timer b output mode as shown in figure 45. it is reset to $0 by mcu reset.
hd404449 series 63 bit initial value read/write bit name 3 not used 2 not used 0 0 r/w tmb20 1 0 r/w tmb21 timer mode register b2 (tmb2: $013) tmb21 0 1 tmb20 0 1 0 1 r3 0 /tob mode selection r3 0 tob tob tob r3 0 port toggle output 0 output 1 output figure 45 timer mode register b2 (tmb2) timer write register b (twbl: $00a, twbu: $00b): write-only register consisting of the lower digit (twbl) and the upper digit (twbu) as shown in figures 46 and 47. the lower digit is reset to $0 by mcu reset, but the upper digit value is invalid. timer b is initialized by writing to timer write register b (twbl: $00a, twbu: $00b). in this case, the lower digit (twbl) must be written to first, but writing only to the lower digit does not change the timer b value. timer b is initialized to the value in timer write register b at the same time the upper digit (twbu) is written to. when timer write register b is written to again and if the lower digit value needs no change, writing only to the upper digit initializes timer b. bit initial value read/write bit name 3 0 w twbl3 2 0 w twbl2 0 0 w twbl0 1 0 w twbl1 timer write register b (lower digit) (twbl: $00a) figure 46 timer write register b lower digit (twbl) bit initial value read/write bit name 3 undefined w twbu3 2 undefined w twbu2 0 undefined w twbu0 1 undefined w twbu1 timer write register b (upper digit) (twbu: $00b) figure 47 timer write register b upper digit (twbu)
hd404449 series 64 timer read register b (trbl: $00a, trbu: $00b): read-only register consisting of the lower digit (trbl) and the upper digit (trbu) that holds the count of the timer b upper digit (figures 48 and 49). the upper digit (trbu) must be read first. at this time, the count of the timer b upper digit is obtained, and the count of the timer b lower digit is latched to the lower digit (trbl). after this, by reading trbl, the count of timer b when trbu is read can be obtained. bit initial value read/write bit name 3 undefined r trbl3 2 undefined r trbl2 0 undefined r trbl0 1 undefined r trbl1 timer read register b (lower digit) (trbl: $00a) figure 48 timer read register b lower digit (trbl) bit initial value read/write bit name 3 undefined r trbu3 2 undefined r trbu2 0 undefined r trbu0 1 undefined r trbu1 timer read register b (upper digit) (trbu: $00b) figure 49 timer read register b upper digit (trbu) port mode register c (pmrc: $025): write-only register that selects r3 3 / evnb pin function as shown in figure 50. it is reset to $0 by mcu reset.
hd404449 series 65 bit initial value read/write bit name 3 0 w pmrc3 2 0 w pmrc2 0 0 w pmrc0 1 0 w pmrc1 pmrc1 0 1 r4 0 /evnd mode selection r4 0 evnd port mode register c (pmrc: $025) pmrc0 0 1 r3 3 / evnb mode selection r3 3 evnb pmrc3 0 1 d 13 / int 0 mode selection d 13 int 0 pmrc2 0 1 d 12 / stopc mode selection d 12 stopc figure 50 port mode register c (pmrc) timer c timer c functions: timer c has the following functions. free-running/reload timer watchdog timer timer output operation (toggle, 0, 1, and pwm outputs) the block diagram of timer c is shown in figure 51.
hd404449 series 66 watchdog on flag (wdon) system reset signal timer c interrupt request flag (iftc) timer output control logic timer read register cu (trcu) timer output control timer read register cl (trcl) clock timer counter c (tcc) selector system clock prescaler s (pss) overflow internal data bus timer write register cu (twcu) timer write register cl (twcl) timer mode register c1 (tmc1) timer mode register c2 (tmc2) free-running /reload control watchdog timer control logic toc per 2 4 8 32 128 512 1024 2048 3 3 figure 51 timer c block diagram timer c operations: free-running/reload timer operation: the free-running/reload operation, input clock source, and prescaler division ratio are selected by timer mode register c1 (tmc1: $00d). timer c is initialized to the value set in timer write register c (twcl: $00e, twcu: $00f) by software and incremented by one at each clock input. if an input clock is applied to timer c after it has reached $ff, an overflow is generated. in this case, if the reload timer function is enabled, timer c is initialized to its initial value set in timer write register c; if the free-running timer function is enabled, the timer is initialized to $00 and then incremented again.
hd404449 series 67 the overflow sets the timer c interrupt request flag (iftc: $002, bit 2). iftc is reset by software or mcu reset. refer to figure 3 and table 1 for details. watchdog timer operation: timer c is used as a watchdog timer for detecting out-of-control program routines by setting the watchdog on flag (wdon: $020, bit 1) to 1. if a program routine runs out of control and an overflow is generated, the mcu is reset. program run can be controlled by initializing timer c by software before it reaches $ff. timer output operation: the following four output modes can be selected for timer c by setting timer mode register c2 (tmc2: $014). ? toggle ? 0 output ? 1 output ? pwm output by selecting the timer output mode, pin r3 1 /toc is set to toc. the output from toc is reset low by mcu reset. ? toggle output: the operation is basically the same as that of timer-b? toggle output. ? 0 output: the operation is basically the same as that of timer-b? 0 output. ? 1 output: the operation is basically the same as that of timer-b? 1 output. ? pwm output: when pwm output mode is selected, timer c provides the variable-duty pulse output function. the output waveform differs depending on the contents of timer mode register c1 (tmc1: $00d) and timer write register c (twcl: $00e, twcu: $00f). the output waveform is shown in figure 43. registers for timer c operation: by using the following registers, timer c operation modes are selected and the timer c count is read and written. ? timer mode register c1 (tmc1: $00d) ? timer mode register c2 (tmc2: $014) ? timer write register c (twcl: $00e, twcu: $00f) ? timer read register c (trcl: $00e, trcu: $00f) timer mode register c1 (tmc1: $00d): four-bit write-only register that selects the free- running/reload timer function, input clock source, and prescaler division ratio as shown in figure 52. it is reset to $0 by mcu reset. writing to this register is valid from the second instruction execution cycle after the execution of the previous timer mode register c1 write instruction. setting timer c? initialization by writing to timer write register c (twcl: $00e, twcu: $00f) must be done after a mode change becomes valid. timer mode register c2 (tmc2: $014): three-bit read/write register that selects the timer c output mode as shown in figure 53. it is reset to $0 by mcu reset.
hd404449 series 68 timer write register c (twcl: $00e, twcu: $00f): write-only register consisting of a lower digit (twcl) and an upper digit (twcu) as shown in figures 54 and 55. the operation of timer write register c is basically the same as that of timer write register b (twbl: $00a, twbu: $00b). timer read register c (trcl: $00e, trcu: $00f): read-only register consisting of a lower digit (trcl) and an upper digit (trcu) that holds the count of the timer c upper digit as shown in figures 56 and 57. the operation of timer read register c is basically the same as that of timer read register b (trbl: $00a, trbu: $00b). bit initial value read/write bit name 3 0 w tmc13 2 0 w tmc12 0 0 w tmc10 1 0 w tmc11 timer mode register c1 (tmc1: $00d) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2048t cyc 1024t cyc 512t cyc 128t cyc 32t cyc 8t cyc 4t cyc 2t cyc tmc12 tmc10 tmc11 tmc13 0 1 free-running/reload timer selection free-running timer reload timer input clock period figure 52 timer mode register c1 (tmc1)
hd404449 series 69 bit initial value read/write bit name 3 not used 2 0 r/w tmc22 0 0 r/w tmc20 1 0 r/w tmc21 timer mode register c2 (tmc2: $014) tmc22 0 tmc21 r3 1 /toc mode selection r3 1 toc toc toc toc r3 1 port toggle output 0 output 1 output inhibited pwm output tmc20 0 1 0 1 0 1 0 1 0 1 10 1 figure 53 timer mode register c2 (tmc2) bit initial value read/write bit name 3 0 w twcl3 2 0 w twcl2 0 0 w twcl0 1 0 w twcl1 timer write register c (lower digit) (twcl: $00e) figure 54 timer write register c lower digit (twcl) bit initial value read/write bit name 3 undefined w twcu3 2 undefined w twcu2 0 undefined w twcu0 1 undefined w twcu1 timer write register c (upper digit) (twcu: $00f) figure 55 timer write register c upper digit (twcu)
hd404449 series 70 bit initial value read/write bit name 3 undefined r trcl3 2 undefined r trcl2 0 undefined r trcl0 1 undefined r trcl1 timer read register c (lower digit) (trcl: $00e) figure 56 timer read register c lower digit (trcl) bit initial value read/write bit name 3 undefined r trcu3 2 undefined r trcu2 0 undefined r trcu0 1 undefined r trcu1 timer read register c (upper digit) (trcu: $00f) figure 57 timer read register c upper digit (trcu) timer d timer d functions: timer d has the following functions. free-running/reload timer external event counter timer output operation (toggle, 0, 1, and pwm outputs) input capture timer the block diagram for each operation mode of timer d is shown in figures 58 (a) and (b).
hd404449 series 71 timer d interrupt request flag (iftd) timer output control logic timer read register du (trdu) timer output control timer read register dl (trdl) clock timer counter d (tcd) selector system clock prescaler s (pss) overflow internal data bus timer write register du (twdu) timer write register dl (twdl) timer mode register d1 (tmd1) timer mode register d2 (tmd2) free-running/ reload control tod edge detection logic edge detection selection register 2 (esr2) edge detection control per 2 3 3 2 4 8 32 128 512 2048 evnd figure 58 (a) timer d block diagram (free-running/reload timer)
hd404449 series 72 selector 2 4 8 32 128 512 2048 3 2 per input capture status flag (icsf) input capture error flag (icef) timer d interrupt request flag (iftd) error control logic edge detection logic timer read register du (trdu) timer read register dl (trdl) read signal clock timer counter d (tcd) overflow system clock edge detection control prescaler s (pss) input capture timer control timer mode register d1 (tmd1) timer mode register d2 (tmd2) edge detection selection register 2 (esr2) evnd internal data bus figure 58 (b) timer d block diagram (input capture timer)
hd404449 series 73 timer d operations: free-running/reload timer operation: the free-running/reload operation, input clock source, and prescaler division ratio are selected by timer mode register d1 (tmd1: $010). timer d is initialized to the value set in timer write register d (twdl: $011, twdu: $012) by software and incremented by one at each clock input. if an input clock is applied to timer d after it has reached $ff, an overflow is generated. in this case, if the reload timer function is enabled, timer d is initialized to its initial value set in timer write register d; if the free-running timer function is enabled, the timer is initialized to $00 and then incremented again. the overflow sets the timer d interrupt request flag (iftd: $003, bit 0). iftd is reset by software or mcu reset. refer to figure 3 and table 1 for details. external event counter operation: timer d is used as an external event counter by selecting the external event input as an input clock source. in this case, pin r4 0 /evnd must be set to evnd by port mode register c (pmrc: $025). either falling or rising edge, or both falling and rising edges of input signals can be selected as the external event detection edge by detection edge select register 2 (esr2: $027). when both rising and falling edges detection is selected, the time between the falling edge and rising edge of input signals must be 2t cyc or longer. timer d is incremented by one at each detection edge selected by detection edge select register 2 (esr2: $027). the other operation is basically the same as the free-running/reload timer operation. timer output operation: the following four output modes can be selected for timer d by setting timer mode register d2 (tmd2: $015). ? toggle ? 0 output ? 1 output ? pwm output by selecting the timer output mode, pin r3 2 /tod is set to tod. the output from tod is reset low by mcu reset. ? toggle output: the operation is basically the same as that of timer-b? toggle output. ? 0 output: the operation is basically the same as that of timer-b? 0 output. ? 1 output: the operation is basically the same as that of timer-b? 1 output. ? pwm output: the operation is basically the same as that of timer-c? pwm output. input capture timer operation: the input capture timer counts the clock cycles between trigger edges input to pin evnd. either falling or rising edge, or both falling and rising edges of input signals can be selected as the trigger input edge by detection edge select register 2 (esr2: $027).
hd404449 series 74 when a trigger edge is input to evnd, the count of timer d is written to timer read register d (trdl: $011, trdu: $012), and the timer d interrupt request flag (iftd: $003, bit 0) and the input capture status flag (icsf: $021, bit 0) are set. timer d is reset to $00, and then incremented again. while icsf is set, if a trigger input edge is applied to timer d, or if timer d generates an overflow, the input capture error flag (icef: $021, bit 1) is set. icsf and icef are reset to 0 by mcu reset or by writing 0. by selecting the input capture operation, pin r3 2 /tod is set to r3 2 and timer d is reset to $00. registers for timer d operation: by using the following registers, timer d operation modes are selected and the timer d count is read and written. ? timer mode register d1 (tmd1: $010) ? timer mode register d2 (tmd2: $015) ? timer write register d (twdl: $011, twdu: $012) ? timer read register d (trdl: $011, trdu: $012) ? port mode register c (pmrc: $025) ? detection edge select register 2 (esr2: $027) timer mode register d1 (tmd1: $010): four-bit write-only register that selects the free- running/reload timer function, input clock source, and the prescaler division ratio as shown in figure 59. it is reset to $0 by mcu reset. writing to this register is valid from the second instruction execution cycle after the execution of the previous timer mode register d1 (tmd1: $010) write instruction. setting timer d? initialization by writing to timer write register d (twdl: $011, twdu: $012) must be done after a mode change becomes valid. when selecting the input capture timer operation, select the internal clock as the input clock source. timer mode register d2 (tmd2: $015): four-bit read/write register that selects the timer d output mode and input capture operation as shown in figure 60. it is reset to $0 by mcu reset.
hd404449 series 75 bit initial value read/write bit name 3 0 w tmd13 2 0 w tmd12 0 0 w tmd10 1 0 w tmd11 timer mode register d1 (tmd1: $010) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2048t cyc 512t cyc 128t cyc 32t cyc 8t cyc 4t cyc 2t cyc tmd12 tmd10 tmd11 input clock period and input clock source r4 0 /evnd (external event input) tmd13 0 1 free-running/reload timer selection free-running timer reload timer figure 59 timer mode register d1 (tmd1) timer write register d (twdl: $011, twdu: $012): write-only register consisting of a lower digit (twdl) and an upper digit (twdu) as shown in figures 61 and 62. the operation of timer write register d is basically the same as that of timer write register b (twbl: $00a, twbu: $00b). timer read register d (trdl: $011, trdu: $012): read-only register consisting of a lower digit (trdl) and an upper digit (trdu) as shown in figures 63 and 64. the operation of timer read register d is basically the same as that of timer read register b (trbl: $00a, trbu: $00b). when the input capture timer operation is selected and if the count of timer d is read after a trigger is input, either the lower or upper digit can be read first. port mode register c (pmrc: $025): write-only register that selects r4 0 /evnd pin function as shown in figure 50. it is reset to $0 by mcu reset. detection edge select register 2 (esr2: $027): write-only register that selects the detection edge of signals input to pin evnd as shown in figure 65. it is reset to $0 by mcu reset.
hd404449 series 76 bit initial value read/write bit name 3 0 r/w tmd23 2 0 r/w tmd22 0 0 r/w tmd20 1 0 r/w tmd21 timer mode register d2 (tmd2: $015) tmd22 tmd20 0 1 0 1 0 1 0 1 tmd21 0 1 0 1 0 1 r3 2 /tod mode selection r3 2 tod tod tod tod r3 2 r3 2 port toggle output 0 output 1 output inhibited pwm output input capture (r3 2 port) tmd23 0 1 don't care don't care don't care figure 60 timer mode register d2 (tmd2) bit initial value read/write bit name 3 0 w twdl3 2 0 w twdl2 0 0 w twdl0 1 0 w twdl1 timer write register d (lower digit) (twdl: $011) figure 61 timer write register d lower digit (twdl) bit initial value read/write bit name 3 undefined w twdu3 2 undefined w twdu2 0 undefined w twdu0 1 undefined w twdu1 timer write register d (upper digit) (twdu: $012) figure 62 timer write register d upper digit (twdu)
hd404449 series 77 bit initial value read/write bit name 3 undefined r trdl3 2 undefined r trdl2 0 undefined r trdl0 1 undefined r trdl1 timer read register d (lower digit) (trdl: $011) figure 63 timer read register d lower digit (trdl) bit initial value read/write bit name 3 undefined r trdu3 2 undefined r trdu2 0 undefined r trdu0 timer read register d (upper digit) (trdu: $012) 1 undefined r trdu1 figure 64 timer read register d upper digit (trdu) bit initial value read/write bit name 3 0 w esr23 2 0 w esr22 0 not used 1 not used detection edge register 2 (esr2: $027) esr23 0 1 esr22 0 1 0 1 evnd detection edge no detection falling-edge detection rising-edge detection double-edge detection * note: * both falling and rising edges are detected. figure 65 detection edge select register 2 (esr2) notes on use when using the timer output as pwm output, note the following point. from the update of the timer write register until the occurrence of the overflow interrupt, the pwm output differs from the period and duty settings, as shown in table 27. the pwm output should therefore not be used until after the overflow interrupt following the update of the timer write register. after the overflow, the pwm output will have the set period and duty cycle.
hd404449 series 78 table 27 pwm output following update of timer write register pwm output mode timer write register is updated during high pwm output timer write register is updated during low pwm output free running timer write register updated to value n interrupt request t (255 ?n) t (n + 1) timer write register updated to value n interrupt request t (n' + 1) t (255 ?n) t (n + 1) reload timer write register updated to value n interrupt request t t (255 ?n) t timer write register updated to value n interrupt request t t (255 ?n) t
hd404449 series 79 serial interface the mcu has two channels of serial interface. the transfer and receive start instructions differ according to the serial interface channel, but other functions are the same. the serial interface serially transfers or receives 8-bit data, and includes the following features. multiple transmit clock sources ? external clock ? internal prescaler output clock ? system clock output level control in idle states five registers, an octal counter, and a multiplexer are also configured for serial interfaces 1 and 2 as follows. serial interface 1 serial data register 1 (sr1l: $006, sr1u: $007) serial mode register 1a (sm1a: $005) serial mode register 1b (sm1b: $028) port mode register a (pmra: $004) miscellaneous register (mis: $00c) octal counter (oc) selector serial interface 2 serial data register 2 (sr2l: $01d, sr2u: $01e) serial mode register 2a (sm2a: $01b) serial mode register 2b (sm2b: $01c) port mode register a (pmra: $004) octal counter (oc) selector the block diagram of serial interfaces 1 and 2 are shown in figure 66.
hd404449 series 80 selector prescaler s (pss) 2 8 32 128 512 2048 selector i/o control logic idle control logic octal counter (oc1, oc2) serial interrupt request flag (ifs1, ifs2) clock serial data register (sr1l/u, sr2l/u) serial mode register 1a, 2a (sm1a, sm2a) serial mode register 1b, 2b (sm1b, sm2b) transfer control so , so sck , sck si , si system clock internal data bus 3 per 1/2 1/2 2 1 2 1 2 1 figure 66 serial interfaces 1 and 2 block diagram serial interface operation selecting and changing the operating mode: tables 28 (a) and 28 (b) list the serial interfaces operating modes. to select an operating mode, use one of these combinations of port mode register a (pmra: $004), serial mode register 1a (sm1a: $005), and serial mode register 2a (sm2a: $01b) settings; to change the operating mode of serial interface 1, always initialize the serial interface internally by writing data to serial mode register 1a; and to change the operating mode of serial interface 2, always initialize the serial interface internally by writing data to serial mode register 2a. note that serial interface
hd404449 series 81 1 is initialized by writing data to serial mode register 1a, and serial interface 2 is initialized by writing data to serial mode register 2a. refer to the following section registers for serial interface for details. pin setting: the r4 1 / sck 1 pin is controlled by writing data to serial mode register 1a (sm1a: $005). the r5 1 / sck 2 pin is controlled by writing data to serial mode register 2a (sm2a: $01b). pins r4 2 /si 1 , r4 3 /so 1 , r5 2 /si 2 , and r5 3 /so 2 are controlled by writing data to port mode register a (pmra: $004). refer to the following section registers for serial interface for details. transmit clock source setting: the transmit clock source of serial interface 1 is set by writing data to serial mode register 1a (sm1a: $005) and serial mode register 1b (sm1b: $028). the transmit clock source of serial interface 2 is set by writing data to serial mode register 2a (sm2a: $01b) and serial mode register 2b (sm2b: $01c). refer to the following section registers for serial interface for details. data setting: transmit data of serial interface 1 is set by writing data to serial data register 1 (sr1l: $006, sr1u: $007). transmit data of serial interface 2 is set by writing data to serial data register 2 (sr2l: $01d, sr2u: $01e). receive data of serial interface 1 is obtained by reading the contents of serial data register 1. receive data of serial interface 2 is obtained by reading the contents of serial data register 2. the serial data is shifted by each serial interface transmit clock and is input from or output to an external system. the output level of the so 1 and so 2 pins is invalid until the first data of each serial interface is output after mcu reset, or until the output level control in idle states is performed. transfer control: serial interface 1 is activated by the sts instruction. serial interface 2 is activated by a dummy read of serial mode register 2a (sm2a: $01b), which will be referred to as sm2a read. the octal counter is reset to 000 by the sts instruction (serial interface 2 is sm2a read), and it increments at the rising edge of the transmit clock for each serial interface. when the eighth transmit clock signal is input or when serial transmission/reception is discontinued, the octal counter is reset to 000, the serial 1 interrupt request flag (ifs1: $003, bit 2) for serial interface 1 and serial 2 interrupt request flag (ifs2: $023, bit 2) for serial interface 2 are set, and the transfer stops. when the prescaler output is selected as the transmit clock of serial interface 1, the transmit clock frequency is selected as 4t cyc to 8192t cyc by setting bits 0 to 2 (sm1a0?m1a2) of serial mode register 1a (sm1a: $005) and bit 0 (sm1b0) of serial mode register 1b (sm1b: $028) as listed in table 29. when the prescaler output is selected as the transmit clock of serial interface 2, the transmit clock frequency is selected as 4t cyc to 8192t cyc by setting bits 0 to 2 (sm2a0?sm2a2) of serial mode register 2a (sm2a: $01b) and bit 0 (sm2b0) of serial mode register 2b (sm2b: $01c). note: to start serial interface 2, simply read serial mode register 2a by using the instruction that compares serial mode register 2a (sm2a: $01b) with the accumulator. serial mode register 2a (sm2a: $01b) is a read-only register, so $0 can be read.
hd404449 series 82 table 28 (a) serial interface 1 operating modes sm1a pmra bit 3 bit 1 bit 0 operating mode 1 0 0 continuous clock output mode 1 transmit mode 1 0 receive mode 1 transmit/receive mode table 28 (b) serial interface 2 operating modes sm2a pmra bit 3 bit 3 bit 2 operating mode 1 0 0 continuous clock output mode 1 transmit mode 1 0 receive mode 1 transmit/receive mode table 29 serial transmit clock (prescaler output) sm1b/ sm2b sm1a/ sm2a bit 0 bit 2 bit 1 bit 0 prescaler division ratio transmit clock frequency 0000 ? 2048 4096t cyc 1 ? 512 1024t cyc 10 ? 128 256t cyc 1 ? 32 64t cyc 10 0 ? 8 16t cyc 1 ? 24t cyc 1000 ? 4096 8192t cyc 1 ? 1024 2048t cyc 10 ? 256 512t cyc 1 ? 64 128t cyc 10 0 ? 16 32t cyc 1 ? 48t cyc
hd404449 series 83 operating states: the serial interface has the following operating states; transitions between them are shown in figure 67. ? sts wait state (serial interface 2 is in sm2a read wait state) ? transmit clock wait state ? transfer state ? continuous clock output state (only in internal clock mode) the operation state of serial interface 2 is the same as serial interface 1 except that the sts instruction of serial interface 1 changes to sm2a read. the following shows the operation state of serial interface 1. sts wait state: the serial interface enters sts wait state by mcu reset (00, 10 in figure 67). in sts wait state, serial interface 1 is initialized and the transmit clock is ignored. if the sts instruction is then executed (01, 11), serial interface 1 enters transmit clock wait state. sts wait state (octal counter = 000, transmit clock disabled) transmit clock wait state (octal counter = 000) transfer state (octal counter = 000) mcu reset 00 sm1a write 04 sts instruction 01 transmit clock 02 8 transmit clocks 03 sts instruction (ifs 1) 05 ? sm1a write (ifs 1) 06 ? external clock mode sts wait state (octal counter = 000, transmit clock disabled) transmit clock wait state (octal counter = 000) transfer state (octal counter = 000) sm1a write 14 sts instruction 11 transmit clock 12 15 sts instruction (ifs 1) ? 8 transmit clocks 13 internal clock mode continuous clock output state (pmra 0, 1 = 00) sm1a write 18 transmit clock 17 16 note: refer to the operating states section for the corresponding encircled numbers. mcu reset 10 ? sm1a write (ifs 1) figure 67 serial interface state transitions transmit clock wait state: transmit clock wait state is the period between the sts execution and the falling edge of the first transmit clock. in transmit clock wait state, input of the transmit clock (02, 12) increments the octal counter, shifts serial data register 1 (sr1l: $006, sr1u: $007), and enters the
hd404449 series 84 serial interface in transfer state. however, note that if continuous clock output mode is selected in internal clock mode, the serial interface does not enter transfer state but enters continuous clock output state (17). the serial interface enters sts wait state by writing data to serial mode register 1a (sm1a: $005) (04, 14) in transmit clock wait state. transfer state: transfer state is the period between the falling edge of the first clock and the rising edge of the eighth clock. in transfer state, the input of eight clocks or the execution of the sts instruction sets the octal counter to 000, and the serial interface enters another state. when the sts instruction is executed (05, 15), transmit clock wait state is entered. when eight clocks are input, transmit clock wait state is entered (03) in external clock mode, and sts wait state is entered (13) in internal clock mode. in internal clock mode, the transmit clock stops after outputting eight clocks. in transfer state, writing data to serial mode register 1a (sm1a: $005) (06, 16) initializes serial interface 1, and sts wait state is entered. if the state changes from transfer to another state, the serial 1 interrupt request flag (ifs1: $003, bit 2) is set by the octal counter that is reset to 000. continuous clock output state (only in internal clock mode): continuous clock output state is entered only in internal clock mode. in this state, the serial interface does not transmit/receive data but only outputs the transmit clock from the sck 1 pin. when bits 0 and 1 (pmra0, pmra1) of port mode register a (pmra: $004) are 00 in transmit clock wait state and if the transmit clock is input (17), the serial interface enters continuous clock output state. if serial mode register 1a (sm1a: $005) is written to in continuous clock output mode (18), sts wait state is entered. output level control in idle states: when serial interface 1 is in sts instruction wait state and when serial interface 2 is in sm2a read wait state and transmit clock state, the output of each serial output pin, so 1 and so 2 , can be controlled by setting bit 1 (sm1b1) of serial mode register 1b (sm1b: $028) to 0 or 1, or bit 1 (sm2b1) of serial mode register 2b (sm2b: $01c) to 0 or 1. the output level control example of serial interface 1 is shown in figure 68. note that the output level cannot be controlled in transfer state.
hd404449 series 85  
   state mcu reset pmra write sm1a write sm1b write sr1l, sr1u write sts instruction sck 1 pin (input) so 1 pin ifs1 sts wait state transmit clock wait state transfer state transmit clock wait state sts wait state port selection external clock selection output level control in idle states dummy write for state transition output level control in idle states data write for transmission undefined lsb msb flag reset at transfer completion external clock mode     state mcu reset pmra write sm1a write sm1b write sr1l, sr1u write sts instruction sck 1 pin (input) so 1 pin ifs1 sts wait state transfer state transmit clock wait state sts wait state port selection internal clock selection output level control in idle states data write for transmission output level control in idle states undefined lsb msb flag reset at transfer completion internal clock mode figure 68 example of serial interface 1 operation sequence
hd404449 series 86 transmit clock error detection (in external clock mode): each serial interface will malfunction if a spurious pulse caused by external noise conflicts with a normal transmit clock during transfer. a transmit clock error of this type can be detected as shown in figure 69. if more than eight transmit clocks are input in transfer state, at the eighth clock including a spurious pulse by noise, the octal counter reaches 000, the serial 1 interrupt request flag (ifs1: $003, bit 2) is set, and transmit clock wait state is entered. at the falling edge of the next normal clock signal, the transfer state is entered. after the transfer is completed and ifs1 is reset, writing to serial mode register 1a (sm1a: $005) changes the state from transfer to sts wait. at this time serial interface 1 is in the transfer state, and the serial 1 interrupt request flag (ifs1: $003, bit 2) is set again, and therefore the error can be detected. the same applies to serial interface 2. notes on use: initialization after writing to registers: if port mode register a (pmra: $004) is written to in transmit clock wait state or in transfer state, the serial interface must be initialized by writing to serial mode register 1a (sm1a: $005) and serial mode register 2a (sm2a: $01b) again. serial 1 interrupt request flag (ifs1: $003, bit 2) and serial 2 interrupt request flag (ifs2: $023, bit 2) set: for serial interface 1, if the state is changed from transfer state to another by writing to serial mode register 1a (sm1a: $005) or executing the sts instruction during the first low pulse of the transmit clock, the serial 1 interrupt request flag (ifs1: $003, bit 2) is not set. in the same way for serial interface 2, if the state is changed from transfer state to another by writing to serial mode register 2a (sm2a: $01b) or by executing the sts instruction during the first low pulse of the transmit clock, the serial 2 interrupt request flag (ifs2: $023, bit 2) is not set. to set the serial 1 interrupt request flag (ifs1: $003, bit 2), a serial mode register 1a (sm1a: $005) write or sts instruction execution must be programmed to be executed after confirming that the sck 1 pin is at 1, that is, after executing the input instruction to port r4. to set the serial 2 interrupt request flag (ifs2: $023, bit 2), a serial mode register 2a (sm2a: $01b) write or sm2a instruction execution must be programmed to be executed after confirming that the sck 2 pin is at 1, that is, after executing the input instruction to port r5.
hd404449 series 87 transfer completion (ifs1 1) interrupts inhibited ifs1 0 sm1a write ifs1 = 1 transmit clock error processing normal termination ? ? yes no transmit clock error detection flowchart   transmit clock error detection procedures state transmit clock wait state transfer state transfer state transmit clock wait state noise transfer state has been entered by the transmit clock error. when sm1a is written, ifs1 is set. flag set because octal counter reaches 000. flag reset at transfer completion. sm1a write 12 3 45678 sck pin (input) ifs1 1 figure 69 transmit clock error detection
hd404449 series 88 registers for serial interface the serial interface operation is selected, and serial data is read and written by the following registers. for serial interface 1 serial mode register 1a (sm1a: $005) serial mode register 1b (sm1b: $028) serial data register 1 (sr1l: $006, sr1u: $007) port mode register a (pmra: $004) miscellaneous register (mis: $00c) for serial interface 2 serial mode register 2a (sm2a: $01b) serial mode register 2b (sm2b: $01c) serial data register 2 (sr2l: $01d, sr2u: $01e) port mode register a (pmra: $004) serial mode register 1a (sm1a: $005): this register has the following functions (figure 70). r4 1 / sck 1 pin function selection serial interface 1 transmit clock selection serial interface 1 prescaler division ratio selection serial interface 1 initialization serial mode register 1a (sm1a: $005) is a 4-bit write-only register. it is reset to $0 by mcu reset. a write signal input to serial mode register 1a (sm1a: $005) discontinues the input of the transmit clock to serial data register 1 (sr1l: $006, sr1u: $007) and the octal counter, and the octal counter is reset to 000. therefore, if a write is performed during data transfer, the serial 1 interrupt request flag (ifs1: $003, bit 2) is set. written data is valid from the second instruction execution cycle after the write operation, so the sts instruction must be executed at least two cycles after that.
hd404449 series 89 bit initial value read/write bit name 3 0 w sm1a3 2 0 w sm1a2 0 0 w sm1a0 1 0 w sm1a1 serial mode register 1a (sm1a: $005) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 sm1a2 sm1a0 sm1a1 sm1a3 0 1 r4 1 / sck 1 mode selection r4 1 sck 1 sck 1 output output input clock source prescaler system clock external clock prescaler division ratio refer to table 29 figure 70 serial mode register 1a (sm1a) serial mode register 1b (sm1b: $028): this register has the following functions (figure 71). serial interface 1 prescaler division ratio selection serial interface 1 output level control in idle states serial mode register 1b (sm1b: $028) is a 2-bit write-only register. it cannot be written during data transfer. by setting bit 0 (sm1b0) of this register, the serial interface 1 prescaler division ratio is selected. only bit 0 (sm1b0) can be reset to 0 by mcu reset. by setting bit 1 (sm1b1), the output level of the so 1 pin is controlled in idle states of serial interface 1. the output level changes at the same time that sm1b1 is written to.
hd404449 series 90 bit initial value read/write bit name 3 not used 2 not used 0 0 w sm1b0 1 undefined w sm1b1 sm1b0 0 1 transmit clock division ratio prescaler output divided by 2 prescaler output divided by 4 serial mode register 1b (sm1b: $028) sm1b1 0 1 output level control in idle states low level high level figure 71 serial mode register 1b (sm1b) serial data register 1 (sr1l: $006, sr1u: $007): this register has the following functions (figures 72 and 73) serial interface 1 transmission data write and shift serial interface 1 receive data shift and read writing data in this register is output from the so 1 pin, lsb first, synchronously with the falling edge of the transmit clock; data is input, lsb first, through the si 1 pin at the rising edge of the transmit clock. input/output timing is shown in figure 74. data cannot be read or written during serial data transfer. if a read/write occurs during transfer, the accuracy of the resultant data cannot be guaranteed. bit initial value read/write bit name 3 undefined r/w sr13 2 undefined r/w sr12 0 undefined r/w sr10 1 undefined r/w sr11 serial data register 1 (lower digit) (sr1l: $006) figure 72 serial data register 1 (sr1l)
hd404449 series 91 bit initial value read/write bit name 3 undefined r/w sr17 2 undefined r/w sr16 0 undefined r/w sr14 1 undefined r/w sr15 serial data register 1 (upper digit) (sr1u: $007) figure 73 serial data register 1 (sr1u) lsb msb 12 345 678 transmit clock serial output data serial input data latch timing figure 74 serial interface output timing
hd404449 series 92 port mode register a (pmra: $004): this register has the following functions (figure 75). r4 2 /si 1 pin function selection r4 3 /so 1 pin function selection r5 2 /si 2 pin function selection r5 3 /so 2 pin function selection port mode register a (pmra: $004) is a 4-bit write-only register, and is reset to $0 by mcu reset. bit initial value read/write bit name 3 0 w pmra3 2 0 w pmra2 0 0 w pmra0 1 0 w pmra1 port mode register a (pmra: $004) pmra2 0 1 r5 3 /so 2 mode selection r5 3 so 2 pmra3 0 1 r5 2 /si 2 mode selection r5 2 si 2 pmra0 0 1 r4 3 /so 1 mode selection r4 3 so 1 pmra1 0 1 r4 2 /si 1 mode selection r4 2 si 1 figure 75 port mode register a (pmra)
hd404449 series 93 miscellaneous register (mis: $00c): this register has the following functions (figure 76). r4 3 /so 1 pin pmos control miscellaneous register (mis: $00c) is a 4-bit write-only register and is reset to $0 by mcu reset. bit initial value read/write bit name 3 0 w mis3 2 0 w mis2 0 0 w mis0 1 0 w mis1 miscellaneous register (mis: $00c) mis1 0 1 mis0 0 1 0 1 t rc 0.12207 ms 0.24414 ms * 7.8125 ms 62.5 ms not used mis2 0 1 r4 3 /so 1 pmos on/off selection on off mis3 0 1 pull-up mos on/off selection off on note: * this value is valid only for direct transfer operation. figure 76 miscellaneous register (mis) serial mode register 2a (sm2a: $01b): this register has the following functions (figure 77). r5 1 / sck 2 pin function selection serial interface 2 transmit clock selection serial interface 2 prescaler division ratio selection serial interface 2 initialization serial mode register 2a (sm2a: $01b) is a 4-bit write-only register. it is reset to $0 by mcu reset. a write signal input to serial mode register 2a (sm2a: $01b) discontinues the input of the transmit clock to serial data register 2 (sr2l: $01d, sr1u: $01e) and the octal counter, and the octal counter is reset to
hd404449 series 94 000. therefore, if a write is performed during data transfer, the serial 2 interrupt request flag (ifs2: $023, bit 2) is set. written data is valid from the second instruction execution cycle after the write operation, so the sm2a read instruction must be executed at least two cycles after that. bit initial value read/write bit name 3 0 w sm2a3 2 0 w sm2a2 0 0 w sm2a0 1 0 w sm2a1 serial mode register 2a (sm2a: $01b) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 sm2a2 sm2a0 sm2a1 sm2a3 0 1 r5 1 / sck 2 mode selection r5 1 sck 2 sck 2 output output input clock source prescaler system clock external clock prescaler division ratio refer to table 29 figure 77 serial mode register 2a (sm2a) serial mode register 2b (sm2b: $01c): this register has the following functions (figure 78). serial interface 2 prescaler division ratio selection serial interface 2 output level control in idle states r5 3 /so 2 pin pmos control serial mode register 2b (sm2b: $01c) is a 3-bit write-only register. it cannot be written during serial interface 2 data transfer. bit 0 (sm2b0) and bit 2 (sm2b2) is reset to $0 by mcu reset. by setting bit 0 (sm2b0) of this register, the serial interface 2 prescaler division ratio of serial interface 2 is selected. by resetting bit 1 (sm2b1), the output level of the so 2 pin is controlled in idle states of serial interface 2. the output level changes at the same time that sm2b1 is written to.
hd404449 series 95 bit initial value read/write bit name 3 not used 2 0 w sm2b2 0 0 w sm2b0 1 undefined w sm2b1 sm2b0 0 1 transmit clock division ratio prescaler output divided by 2 prescaler output divided by 4 serial mode register 2b (sm2b: $01c) sm2b2 0 1 r5 3 /so 2 pmos on off sm2b1 0 1 output level control in idle states low level high level figure 78 serial mode register 2b (sm2b) serial data register 2 (sr2l: $01d, sr2u: $01e): this register has the following functions (figures 79 and 80). serial interface 2 transmission data write and shift serial interface 2 receive data shift and read writing data in this register is output from the so 2 pin, lsb first, synchronously with the falling edge of the transmit clock; data is input, lsb first, through the si 2 pin at the rising edge of the transmit clock. data cannot be read or written during serial data transfer. if a read/write occurs during transfer, the accuracy of the resultant data cannot be guaranteed. bit initial value read/write bit name 3 undefined r/w sr23 2 undefined r/w sr22 0 undefined r/w sr20 1 undefined r/w sr21 serial data register 2 (lower digit) (sr2l: $01d) figure 79 serial data register 2 (sr2l)
hd404449 series 96 bit initial value read/write bit name 3 undefined r/w sr27 2 undefined r/w sr26 0 undefined r/w sr24 1 undefined r/w sr25 serial data register 2 (upper digit) (sr2u: $01e) figure 80 serial data register 2 (sr2u)
hd404449 series 97 a/d converter the mcu has a built-in a/d converter that uses a sequential comparison method with a resistor ladder. it can measure four analog inputs with 8-bit resolution. as shown in the block diagram of figure 81, the a/d converter has a 4-bit a/d mode register, a 1-bit a/d start flag, and a 4-bit plus 4-bit a/d data register. internal bus line (s2) a/d mode register (amr) a/d start flag (adsf) a/d data register (adru, adrl) ifad internal bus line (s1) encoder control logic comp selector d/a operating mode signal (set to 0 in stop mode, watch mode, and subactive mode) 4 44 8 2 2 an 0 an 1 an 2 an 3 av cc av ss + 8 a/d interrupt request flag figure 81 a/d converter block diagram a/d mode register (amr: $016): four-bit write-only register which selects the a/d conversion period and indicates analog input pin information. bit 0 of the a/d mode register selects the a/d conversion period, and bits 2 and 3 select a channel, as shown in figure 82. a/d start flag (adsf: $020, bit 2): one-bit flag that initiates a/d conversion when set to 1. at the completion of a/d conversion, the converted data is stored in the a/d data register and the a/d start flag is cleared. refer to figure 86. a/d data register (adrl: $017, adru: $018): eight-bit read-only register consisting of a 4-bit lower digit and 4-bit upper digit. this register is not cleared by reset. after the completion of a/d conversion, the resultant eight-bit data is held in this register until the start of the next conversion (figures 83, 84, and 85).
hd404449 series 98 note on use: use the sem and semd instructions to write data to the a/d start flag (adsf: $020, bit 2), but make sure that the a/d start flag is not written to during a/d conversion. data read from the a/d data register (adrl: $017, adru: $018) during a/d conversion cannot be guaranteed. the a/d converter does not operate in the stop, watch, and subactive modes because of the osc clock. during these low-power dissipation modes, current through the resistor ladder is cut off to decrease the power input. bit initial value read/write bit name 3 0 w amr3 2 0 w amr2 0 0 w amr0 1 not used a/d mode register (amr: $016) amr0 0 1 conversion time 34t cyc 67t cyc amr3 0 0 1 1 amr2 0 1 0 1 analog input selection an 0 an 1 an 2 an 3 figure 82 a/d mode register (amr) 3210 msb lsb 3210 bit 0 bit 7 adru: $018 adrl: $017 figure 83 a/d data registers
hd404449 series 99 bit initial value read/write bit name 3 0 r adrl3 2 0 r adrl2 0 0 r adrl0 1 0 r adrl1 a/d data register (lower digit) (adrl: $017) figure 84 a/d data register lower digit (adrl) bit initial value read/write bit name a/d data register (upper digit) (adru: $018) 2 0 r adru2 1 0 r adru1 0 0 r adru0 3 1 r adru3 figure 85 a/d data register upper digit (adru)
hd404449 series 100 bit initial value read/write bit name 3 0 r/w dton 2 0 r/w adsf 0 0 r/w lson 1 0 r/w wdon a/d start flag (adsf: $020, bit 2) 1 0 adsf (a/d start flag) a/d conversion started a/d conversion completed refer to the description of operating modes dton refer to the description of timers wdon refer to the description of operating modes lson figure 86 a/d start flag (adsf)
hd404449 series 101 notes on mounting assemble all parts including the hd404449 series on a board, noting the points described below. 1. connect layered ceramic type capacitors (about 0.1 m f) between av cc and av ss , between v cc and gnd, and between used analog pins and av ss . 2. connect unused analog pins to av ss . av an an an an av cc ss 0 1 2 3 av an an an an av cc ss 0 1 2 3 av an an an an av cc ss 0 1 2 3 ?when not using an a/d converter v gnd cc v gnd cc v gnd cc ?when using pins an 0 and an 1 but not using an 2 and an 3 ?when using all analog pins 0.1 f 3 0.1 f 5 0.1 f figure 87 example of connections (1)
hd404449 series 102 between the v cc and gnd lines, connect capacitors designed for use in ordinary power supply circuits. an example connection is described in figure 88. no resistors can be inserted in series in the power supply circuit, so the capacitors should be connected in parallel. the capacitors are a large capacitance c 1 and a small capacitance c 2 . v gnd cc v gnd cc c 1 c 2 figure 88 example of connections (2)
hd404449 series 103 programmable rom (hd4074449) the hd4074449 is a ztat ? microcomputer with built-in prom that can be programmed in prom mode. prom mode pin description mcu mode prom mode mcu mode prom mode pin no. pin name i/o pin name i/o pin no. pin name i/o pin name i/o 1an 2 i31r1 2 i/o a 7 i 2an 3 i32r1 3 i/o a 8 i 3av ss gnd 33 r2 0 i/o a 0 i 4 test i test i34 r2 1 i/o a 10 i 5 osc 1 iv cc 35 r2 2 i/o a 11 i 6 osc 2 o36r2 3 i/o a 12 i 7 reset i reset i 37 r3 0 /tob i/o 8 x1 i gnd 38 r3 1 /toc i/o 9 x2 o 39 r3 2 /tod i/o 10 gnd gnd 40 r3 3 / evnb i/o 11 d 0 i/o ce i41 r4 0 /evnd i/o 12 d 1 i/o oe i42 r4 1 / sck 1 i/o 13 d 2 i/o v cc 43 r4 2 /si 1 i/o 14 d 3 i/o v cc 44 r4 3 /so 1 i/o 15 d 4 i/o 45 r5 0 i/o 16 d 5 i/o 46 r5 1 / sck 2 i/o 17 d 6 i/o 47 r5 2 /si 2 i/o 18 d 7 i/o 48 r5 3 /so 2 i/o 19 d 8 i/o 49 r6 0 i/o a 1 i 20 d 9 i/o 50 r6 1 i/o a 2 i 21 d 10 i/o a 13 i51 r6 2 i/o a 3 i 22 d 11 i/o a 14 i52 r6 3 i/o a 4 i 23 d 12 / stopc ia 9 i53 r7 0 i/o o 0 i/o 24 d 13 / int 0 iv pp 54 r7 1 i/o o 1 i/o 25 r0 0 / int 1 i/o m 0 i55 r7 2 i/o o 2 i/o 26 r0 1 /int 2 i/o m 1 i56 r7 3 i/o o 3 i/o 27 r0 2 /int 3 i/o 57 r8 0 i/o o 4 i/o 28 r0 3 i/o 58 r8 1 i/o o 5 i/o 29 r1 0 i/o a 5 i59 r8 2 i/o o 6 i/o 30 r1 1 i/o a 6 i60 r8 3 i/o o 7 i/o
hd404449 series 104 mcu mode prom mode mcu mode prom mode pin no. pin name i/o pin name i/o pin no. pin name i/o pin name i/o 61 r9 0 i/o o 4 i/o 71 rb 2 i/o 62 r9 1 i/o o 3 i/o 72 rb 3 i/o 63 r9 2 i/o o 2 i/o 73 rc 0 i/o 64 r9 3 i/o o 1 i/o 74 rc 1 i/o 65 ra 0 i/o o 0 i/o 75 rc 2 i/o 66 ra 1 i/o v cc 76 rc 3 i/o 67 ra 2 i/o 77 v cc v cc 68 ra 3 i/o 78 av cc v cc 69 rb 0 i/o 79 an 0 i 70 rb 1 i/o 80 an 1 i notes: 1. i/o: input/output pin, i: input pin, o: output pin 2. each of o 0 ? 4 has two pins; before using, each pair must be connected together.
hd404449 series 105 programming the built-in prom the mcu? built-in prom is programmed in prom mode. prom mode is set by pulling test , m 0 , and m 1 low, and reset high as shown in figure 89. in prom mode, the mcu does not operate, but it can be programmed in the same way as any other commercial 27256-type eprom using a standard prom programmer and an 80-to-28-pin socket adapter. recommended prom programmers and socket adapters of the hd4074449 are listed in table 31. since an hmcs400-series instruction is ten bits long, the hmcs400-series mcu has a built-in conversion circuit to enable the use of a general-purpose prom programmer. this circuit splits each instruction into five lower bits and five upper bits that are read from or written to consecutive addresses. this means that if, for example, 16 kwords of built-in prom are to be programmed by a general-purpose prom programmer, a 32-kbyte address space ($0000?7fff) must be specified. warnings 1. always specify addresses $0000 to $7fff when programming with a prom programmer. if address $8000 or higher is accessed, the prom may not be programmed or verified correctly. set all data in unused addresses to $ff. note that the plastic-package version cannot be erased or reprogrammed. 2. make sure that the prom programmer, socket adapter, and lsi are aligned correctly (their pin 1 positions match), otherwise overcurrents may damage the lsi. before starting programming, make sure that the lsi is firmly fixed in the socket adapter and the socket adapter is firmly fixed onto the programmer. 3. prom programmers have two voltages (v pp ): 12.5 v and 21 v. remember that ztat ? devices require a v pp of 12.5 v?he 21-v setting will damage them. 12.5 v is the intel 27256 setting. programming and verification the built-in prom of the mcu can be programmed at high speed without risk of voltage stress or damage to data reliability. programming and verification modes are selected as listed in table 30. for details of prom programming, refer to the following section, notes on prom programming. table 30 prom mode selection pin mode ce oe v pp o 0 ? 7 programming low high v pp data input verification high low v pp data output programming inhibited high high v pp high impedance
hd404449 series 106 table 31 recommended prom programmers and socket adapters prom programmer socket adapter manufacturer model name manufacturer package model name data i/o corp. 121b 29b hitachi fp-80a hs444esh01h tfp-80f hs4449esn01h aval corp. pkw-1000 hitachi fp-80a hs444esh01h tfp-80f hs4449esn01h address a 0 to a 14 data o 0 to o 7 oe ce v cc v cc v pp av cc gnd v cc v cc o 0 to o 7 a 0 to a 14 oe ce v pp reset test m 0 m 1 av ss v cc osc 1 d 2 d 3 ra 1 x1 hd4074449 figure 89 prom mode connections
hd404449 series 107 addressing modes ram addressing modes the mcu has three ram addressing modes, as shown in figure 90 and described below. ap 9 ap 0 w 1 y 0 w register x register y register ram address register direct addressing ap 9 ap 0 ram address direct addressing d 9 d 0 2nd word of instruction opcode 1st word of instruction ap 9 ap 0 ram address memory register addressing m 3 opcode instruction 000100 ap 8 ap 7 ap ap 5 ap 4 6 ap 3 ap 2 ap 1 ap ap ap ap ap ap ap ap 87654321 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 ap 8 ap 7 ap 6 ap 5 ap 4 ap 3 ap 2 ap 1 w 0 x 3 x 2 x 1 x 0 y 3 y 2 y 1 m 2 m 1 m 0 figure 90 ram addressing modes register indirect addressing mode: the contents of the w, x, and y registers (10 bits in total) are used as a ram address. when the area from $090 to $25f is used, a bank must be selected by the bank register (v: $03f). direct addressing mode: a direct addressing instruction consists of two words. the first word contains the opcode, and the contents of the second word (10 bits) are used as a ram address.
hd404449 series 108 memory register addressing mode: the memory registers (mr), which are located in 16 addresses from $040 to $04f, are accessed with the lamr and xmra instructions. rom addressing modes and the p instruction the mcu has four rom addressing modes, as shown in figure 91 and described below. direct addressing mode: a program can branch to any address in the rom memory space by executing the jmpl, brl, or call instruction. each of these instructions replaces the 14 program counter bits (pc 13 ?c 0 ) with 14-bit immediate data. current page addressing mode: the mcu has 64 pages of rom with 256 words per page. a program can branch to any address in the current page by executing the br instruction. this instruction replaces the eight low-order bits of the program counter (pc 7 ?c 0 ) with eight-bit immediate data. if the br instruction is on a page boundary (address 256n + 255), executing that instruction transfers the pc contents to the next physical page, as shown in figure 93. this means that the execution of the br instruction on a page boundary will make the program branch to the next page. note that the hmcs400-series cross macroassembler has an automatic paging feature for rom pages. zero-page addressing mode: a program can branch to the zero-page subroutine area located at $0000 $003f by executing the cal instruction. when the cal instruction is executed, 6 bits of immediate data are placed in the six low-order bits of the program counter (pc 5 ?c 0 ), and 0s are placed in the eight high- order bits (pc 13 ?c 6 ). table data addressing mode: a program can branch to an address determined by the contents of four- bit immediate data, the accumulator, and the b register by executing the tbr instruction. p instruction: rom data addressed in table data addressing mode can be referenced with the p instruction as shown in figure 92. if bit 8 of the rom data is 1, eight bits of rom data are written to the accumulator and the b register. if bit 9 is 1, eight bits of rom data are written to the r1 and r2 port output registers. if both bits 8 and 9 are 1, rom data is written to the accumulator and the b register, and also to the r1 and r2 port output registers at the same time. the p instruction has no effect on the program counter.
hd404449 series 109 d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d 1 d 0 2nd word of instruction opcode 1st word of instruction [jmpl] [brl] [call] pc 9 pc 8 pc 7 pc 6 pc 5 pc 4 pc 3 pc 2 pc 1 pc 0 pc pc pc pc 10 11 12 13 program counter direct addressing zero page addressing d 5 d 4 d 3 d 2 d 1 d 0 instruction [cal] opcode pc 98 pc 76 pc 54 pc 3 pc 1 pc 0 pc pc 10 11 12 13 program counter 00 00 0 0 0 0 pc pc pc pc pc pc 2 b 1 b 0 a 3 a 2 a 1 a 0 accumulator program counter table data addressing pc 9 pc 8 pc 7 pc 6 pc 5 pc 4 pc 3 pc 2 pc 1 pc 0 pc pc pc 10 11 12 13 b 2 b 3 b register p 3 p 0 [tbr] instruction opcode 0 0 p 2 p 1 pc opcode b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 instruction pc 90 pc pc pc 11 12 13 program counter current page addressing [br] pc 10 7 pc 6 pc 5 pc 4 pc 3 pc 2 pc 1 pc pc 8 pc p 0 p 1 p 2 p 3 figure 91 rom addressing modes
hd404449 series 110 b 1 b 0 a 3 a 2 a 1 a 0 accumulator referenced rom address address designation ra 9 ra 8 ra 7 ra 6 ra 5 ra 4 ra 3 ra 2 ra 1 ra 0 ra ra ra 10 11 12 13 b 2 b 3 b register 0 0 p 3 p 0 [p] instruction opcode p 2 p 1 ra ro 9 ro 0 ro 8 ro 7 ro 6 ro 5 ro 4 ro 3 ro 2 ro 1 bbbb aa a a 3210 3210 if ro = 1 8 accumulator, b register rom data pattern output ro 9 rom data r2 r2 r2 r2 r1 r1 r1 r1 32103 210 if ro = 1 9 output registers r1, r2 ro 0 ro 8 ro 7 ro 6 ro 5 ro 4 ro 3 ro 2 ro 1 figure 92 p instruction br aaa aaa nop 256 (n ?1) + 255 256n br aaa br bbb 256n + 254 256n + 255 256 (n + 1) bbb nop figure 93 branching when the branch destination is on a page boundary
hd404449 series 111 absolute maximum ratings item symbol value unit notes supply voltage v cc ?.3 to +7.0 v programming voltage v pp ?.3 to +14.0 v 1 pin voltage v t ?.3 to (v cc + 0.3) v total permissible input current ? i o 100 ma 2 total permissible output current ? i o 50 ma 3 maximum input current i o 4 ma 4, 5 30 ma 4, 6 maximum output current ? o 4 ma 7, 8 operating temperature t opr ?0 to +75 c storage temperature t stg ?5 to +125 c notes: permanent damage may occur if these absolute maximum ratings are exceeded. normal opera-tion must be under the conditions stated in the electrical characteristics tables. if these conditions are exceeded, the lsi may malfunction or its reliability may be affected. 1. applies to d 13 (v pp ) of the hd4074449. 2. the total permissible input current is the total of input currents simultaneously flowing in from all the i/o pins to ground. 3. the total permissible output current is the total of output currents simultaneously flowing out from v cc to all i/o pins. 4. the maximum input current is the maximum current flowing from each i/o pin to ground. 5. applies to d 10 , d 11 , and r0?c. 6. applies to d 0 ? 9 . 7. the maximum output current is the maximum current flowing out from v cc to each i/o pin. 8. applies to d 0 ? 11 and r0?c.
hd404449 series 112 electrical characteristics dc characteristics (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = ?0 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) item symbol pin(s) min typ max unit test condition notes input high voltage v ih reset, stopc , int 0 , int 1 , int 2 , int 3 , sck 1 , si 1 , sck 2 , si 2 , evnb , evnd 0.9v cc ? cc + 0.3 v osc 1 v cc ?0.3 v cc + 0.3 v external clock operation input low voltage v il reset, stopc , int 0 , int 1 , int 2 , int 3 , sck 1 , si 1 , sck 2 , si 2 , evnb , evnd ?.3 0.1v cc v osc 1 ?.3 0.3 v external clock operation output high voltage v oh sck 1 , so 1 , sck 2 , so 2 , tob, toc, tod v cc ?1.0 v i oh = 0.5 ma output low voltage v ol sck 1 , so 1 , sck 2 , so 2 , tob, toc, tod 0.4 v i ol = 0.4 ma i/o leakage current | i il | reset, stopc , int 0 , int 1 , int 2 , int 3 , sck 1 , si 1 , sck 2 , si 2 , so 1 , so 2 , evnb , evnd, osc 1 , tob, toc, tod 1.0 m av in = 0 v to v cc 1 current dissipation in active mode i cc1 v cc ?9 mav cc = 5.0 v, f osc = 4 mhz 2 i cc2 v cc 0.6 1.8 ma v cc = 3.0 v, f osc = 800 khz 2
hd404449 series 113 item symbol pin(s) min typ max unit test condition notes current dissipation in standby mode i sby1 v cc 1.2 3 ma v cc = 5.0 v, f osc = 4 mhz 3 i sby2 v cc 0.2 0.7 ma v cc = 3.0 v, f osc = 800 khz 3 current dissipation in subactive mode i sub v cc ?570 m av cc = 3.0 v, 32-khz oscillator 4 70 150 m av cc = 3.0 v, 32-khz oscillator 5 current dissipation in watch mode i wtc v cc ? 15 m av cc = 3.0 v, 32-khz oscillator 6 current dissipation in stop mode i stop v cc ? 10 m av cc = 3.0 v, no 32-khz oscillator 6 stop mode retaining voltage v stop v cc 2 v no 32-khz oscillator 7 notes: 1. output buffer current is excluded. 2. i cc1 and i cc2 are the source currents when no i/o current is flowing while the mcu is in reset state. test conditions: mcu: reset pins: reset at v cc (v cc ?0.3 v to v cc ) test at v cc (v cc ?0.3 v to v cc ) 3. i sby1 and i sby2 are the source currents when no i/o current is flowing while the mcu timer is operating. test conditions: mcu: i/o reset serial interface stopped standby mode pins: reset at gnd (0 v to 0.3 v) test at v cc (v cc ?0.3 v to v cc ) 4. applies to HD404448 and hd404449. 5. applies to hd4074449. 6. these are the source currents when no i/o current is flowing. test conditions: pins: reset at gnd (0 v to 0.3 v) test at v cc (v cc ?0.3 v to v cc ) d 13 (v pp ) at v cc (v cc ?0.3 v to v cc ) for the hd4074449 7. ram data retention.
hd404449 series 114 i/o characteristics for standard pins (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = 20 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) item symbol pin(s) min typ max unit test condition notes input high voltage v ih d 10 ? 13 , r0?c 0.7v cc ? cc + 0.3 v input low voltage v il d 10 ? 13 , r0?c ?.3 0.3v cc v output high voltage v oh d 10 , d 11 , r0?c v cc ?1.0 v i oh = 0.5 ma output low voltage v ol d 10 , d 11 , r0?c 0.4 v i ol = 0.4 ma i/o leakage current ? i il ? d 10 ? 13 , r0?c 1 m av in = 0 v to v cc 1, 2 d 10 ? 12 , r0?c 1 m av in = 0 v to v cc 1, 3 d 13 1 m av in = v cc ?0.3 v to v cc 1, 3 d 13 20 m av in = 0 v to 0.3 v 1, 3 pull-up mos current ? pu d 10 , d 11 , r0?c 53090 m av cc = 3.0 v, v in = 0 v notes: 1. output buffer current is excluded. 2. applies to HD404448 and hd404449. 3. applies to hd4074449.
hd404449 series 115 i/o characteristics for high-current pins (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = ?0 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) item symbol pin(s) min typ max unit test condition notes input high voltage v ih d 0 ? 9 0.7v cc ? cc + 0.3 v input low voltage v il d 0 ? 9 ?.3 0.3v cc v output high voltage v oh d 0 ? 9 v cc ?1.0 v i oh = 0.5 ma output low voltage v ol d 0 ? 9 0.4 v i ol = 0.4 ma 2.0 v i ol = 15 ma, v cc 3 4.5 v i/o leakage current ? i il ? d 0 ? 9 1 m av in = 0 v to v cc 1 pull-up mos current ? pu d 0 ? 9 53090 m av cc = 3.0 v, v in = 0 v notes: 1. output buffer current is excluded. a/d converter characteristics (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = ?0 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) item symbol pin(s) min typ max unit test condition notes analog power voltage av cc av cc v cc ?0.3 v cc v cc + 0.3 v 1 analog input voltage av in an 0 ?n 3 av ss ?v cc v current between av cc and av ss i ad 50 150 m av cc = av cc = 5.0 v analog input capacitance ca in an 0 ?n 3 15 pf resolution 8 8 8 bit number of inputs 0 4 channel absolute accuracy 2.0 lsb t a = 25 c, v cc = 4.5 v to 5.5 v conversion time 34 67 t cyc input impedance an 0 ?n 3 1m w f osc = 1 mhz, v in = 0 v note: 1. av cc 3 2.7 v
hd404449 series 116 ac characteristics (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = ?0 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) item symbol pin(s) min typ max unit test condition notes clock oscillation frequency f osc osc 1 , osc 2 0.4 4.0 mhz 1/4 division 1 x1, x2 32.768 khz instruction cycle time t cyc 1.0 10 m s 1 t subcyc 244.14 m s 32-khz oscillator, 1/8 division 122.07 m s 32-khz oscillator, 1/4 division oscillation stabilization time (ceramic) t rc osc 1 , osc 2 7.5 ms 2 oscillation stabilization time (crystal) t rc osc 1 , osc 2 40 ms HD404448, hd404449 v cc =3.0 to 6.0v hd4074449 v cc =3.5 to 5.5v 2 60 ms 2 x1, x2 3 s t a = ?0 c to +60 c3 external clock high width t cph osc 1 105 ns 4 external clock low width t cpl osc 1 105 ns 4 external clock rise time t cpr osc 1 20 ns 4 external clock fall time t cpf osc 1 20 ns 4 int 0 ?nt 3 , evnb , evnd high widths t ih int 0 ?nt 3 , evnb , evnd 2 t cyc / t subcyc ? int 0 ?nt 3 , evnb , evnd low widths t il int 0 ?nt 3 , evnb , evnd 2 t cyc / t subcyc ? reset high width t rsth reset 2 t cyc ? stopc low width t stpl stopc 1 t rc ? reset fall time t rstf reset 20 ms 6 stopc rise time t stpr stopc 20 ms 7
hd404449 series 117 item symbol pin(s) min typ max unit test condition notes input capacitance c in all pins except d 13 15 pf f = 1 mhz, v in = 0 v d 13 15 pf HD404448, hd404449: f = 1 mhz, v in = 0 v 180 pf hd4074449: f = 1 mhz, v in = 0 v notes: 1. if the 32.768-khz oscillator is used for the subsystem oscillator, f osc must be set as 0.4 mhz f osc 1.0 mhz or 1.6 mhz f osc 4.0 mhz, and bit 1 of the system clock selector register (ssr: $029) must be set to 0 or 1, respectively. 2. the oscillation stabilization time is the period required for the oscillator to stabilize after v cc reaches 2.7 v at power-on, or after reset input goes high or stopc input goes low when stop mode is cancelled. at power-on or when stop mode is cancelled, reset or stopc must be input for at least t rc to ensure the oscillation stabilization time. if using a ceramic oscillator, contact its manufacturer to determine what stabilization time is required, since it will depend on the circuit constants and stray capacitances. set bits 0 and 1 (mis0, mis1) of the miscellaneous register (mis: $00c) according to the system oscillation of the oscillation stabilization time. 3. the oscillation stabilization time is the period required for the oscillator to stabilize after v cc reaches 2.7 v at power-on, or after reset input goes high or stopc input goes low when the 32-khz oscillator stops in stop mode and stop mode is cancelled. if using a crystal oscillator, contact its manufacturer to determine what stabilization time is required, since it will depend on the circuit constants and stray capacitances. 4. refer to figure 94. 5. refer to figure 95. the t cyc unit applies when the mcu is in standby or active mode. the t subcyc unit applies when the mcu is in watch or subactive mode. 6. refer to figure 96. 7. refer to figure 97.
hd404449 series 118 serial interface timing characteristics (HD404448, hd404449: v cc = 2.7 to 6.0 v, gnd = 0 v, t a = 20 c to +75 c; hd4074449: v cc = 2.7 to 5.5 v, gnd = 0 v, t a = ?0 c to +75 c, unless otherwise specified) during transmit clock output item symbol pin min typ max unit test condition note transmit clock cycle time t scyc sck 1 , sck 2 1.0 t cyc load shown in figure 99 1 transmit clock high width t sckh sck 1 , sck 2 0.5 t scyc load shown in figure 99 1 transmit clock low width t sckl sck 1 , sck 2 0.5 t scyc load shown in figure 99 1 transmit clock rise time t sckr sck 1 , sck 2 200 ns load shown in figure 99 1 transmit clock fall time t sckf sck 1 , sck 2 200 ns load shown in figure 99 1 serial output data delay time t dso so 1 , so 2 500 ns load shown in figure 99 1 serial input data setup time t ssi si 1 , si 2 300 ns 1 serial input data hold time t hsi si 1 , si 2 300 ns 1 note: 1. refer to figure 98. during transmit clock input item symbol pin min typ max unit test condition note transmit clock cycle time t scyc sck 1 , sck 2 1.0 t cyc ? transmit clock high width t sckh sck 1 , sck 2 0.5 t scyc ? transmit clock low width t sckl sck 1 , sck 2 0.5 t scyc ? transmit clock rise time t sckr sck 1 , sck 2 200 ns 1 transmit clock fall time t sckf sck 1 , sck 2 200 ns 1 serial output data delay time t dso so 1 , so 2 500 ns load shown in figure 99 1 serial input data setup time t ssi si 1 , si 2 300 ns 1 serial input data hold time t hsi si 1 , si 2 300 ns 1 note: 1. refer to figure 98.
hd404449 series 119 t cpr t cpf v cc ?0.3 v 0.3 v osc 1 t cph t cpl 1/f cp figure 94 external clock timing 0.9v cc 0.1v cc int 0 to int 3 , evnb , evnd t ih t il figure 95 interrupt timing reset t rstf t rsth 0.9v cc 0.1v cc figure 96 reset timing t stpr t stpl 0.9v cc 0.1v cc stopc figure 97 stopc timing
hd404449 series 120 0.9v cc 0.1v cc t dso t sckf t sckl t ssi t hsi t scyc t sckr 0.4 v v ?0.5 v cc v ?2.0 v (0.9v ) * cc 0.4 v (0.1v ) * sck note: * v cc ?2.0 v and 0.4 v are the threshold voltages for transmit clock output, and 0.9v cc and 0.1v cc are the threshold voltages for transmit clock input. cc cc t sckh 1 sck 2 so 1 so 2 si 1 si 2 figure 98 serial interface timing r l = 2.6 k w v cc 1s2074 h or equivalent r = 12 k w test point c = 30 pf figure 99 timing load circuit
hd404449 series 121 notes on rom out please pay attention to the following items regarding rom out. on rom out, fill the rom area indicated below with 1s to create the same data size as a 16-kword version (hd404449). a 16-kword data size is required to change rom data to mask manufacturing data since the program used is for a16-kword version. this limitation applies when using an eprom or a data base. vector address zero-page subroutine (64 words) pattern & program (8,192 words) not used rom 8-kword version: HD404448 address $2000?3fff $0000 $000f $0010 $003f $0040 $1fff $2000 $3fff fill this area with 1s
hd404449 series 122 HD404448, hd404449 option list please check off the appropriate applications and enter the necessary information. 3. rom code media date of order customer department name rom code name lsi number hd40444 eprom: ceramic oscillator crystal oscillator external clock f = mhz f = mhz f = mhz 4. oscillator for osc1 and osc2 the upper bits and lower bits are mixed together. the upper five bits and lower five bits are programmed to the same eprom in alternating order (i.e., lululu...). eprom: the upper bits and lower bits are separated. the upper five bits and lower five bits are programmed to different eproms. HD404448 hd404449 8-kword 16-kword 1. rom size fp-80a tfp-80f 6. package please specify the first type below (the upper bits and lower bits are mixed together), when using the eprom on-package microcomputer type (including ztat version). used not used 5. stop mode with 32-khz cpu operation, with time-base for clock without 32-khz cpu operation, with time-base for clock without 32-khz cpu operation, without time-base 2. optional functions note: * options marked with an asterisk require a subsystem crystal oscillator (x1, x2). * *
hd404449 series 123 cautions 1. hitachi neither warrants nor grants licenses of any rights of hitachi? or any third party? patent, copyright, trademark, or other intellectual property rights for information contained in this document. hitachi bears no responsibility for problems that may arise with third party? rights, including intellectual property rights, in connection with use of the information contained in this document. 2. products and product specifications may be subject to change without notice. confirm that you have received the latest product standards or specifications before final design, purchase or use. 3. hitachi makes every attempt to ensure that its products are of high quality and reliability. however, contact hitachi? sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support. 4. design your application so that the product is used within the ranges guaranteed by hitachi particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges. even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail- safes, so that the equipment incorporating hitachi product does not cause bodily injury, fire or other consequential damage due to operation of the hitachi product. 5. this product is not designed to be radiation resistant. 6. no one is permitted to reproduce or duplicate, in any form, the whole or part of this document without written approval from hitachi. 7. contact hitachi? sales office for any questions regarding this document or hitachi semiconductor products. hitachi, ltd. semiconductor & integrated circuits. nippon bldg., 2-6-2, ohte-machi, chiyoda-ku, tokyo 100-0004, japan tel: tokyo (03) 3270-2111 fax: (03) 3270-5109 copyright ?hitachi, ltd., 1998. all rights reserved. printed in japan. hitachi asia pte. ltd. 16 collyer quay #20-00 hitachi tower singapore 049318 tel: 535-2100 fax: 535-1533 url northamerica : http:semiconductor.hitachi.com/ europe : http://www.hitachi-eu.com/hel/ecg asia (singapore) : http://www.has.hitachi.com.sg/grp3/sicd/index.htm asia (taiwan) : http://www.hitachi.com.tw/e/product/sicd_frame.htm asia (hongkong) : http://www.hitachi.com.hk/eng/bo/grp3/index.htm japan : http://www.hitachi.co.jp/sicd/indx.htm hitachi asia ltd. taipei branch office 3f, hung kuo building. no.167, tun-hwa north road, taipei (105) tel: <886> (2) 2718-3666 fax: <886> (2) 2718-8180 hitachi asia (hong kong) ltd. group iii (electronic components) 7/f., north tower, world finance centre, harbour city, canton road, tsim sha tsui, kowloon, hong kong tel: <852> (2) 735 9218 fax: <852> (2) 730 0281 telex: 40815 hitec hx hitachi europe ltd. electronic components group. whitebrook park lower cookham road maidenhead berkshire sl6 8ya, united kingdom tel: <44> (1628) 585000 fax: <44> (1628) 778322 hitachi europe gmbh electronic components group dornacher stra? 3 d-85622 feldkirchen, munich germany tel: <49> (89) 9 9180-0 fax: <49> (89) 9 29 30 00 hitachi semiconductor (america) inc. 179 east tasman drive, san jose,ca 95134 tel: <1> (408) 433-1990 fax: <1>(408) 433-0223 for further information write to:


▲Up To Search▲   

 
Price & Availability of HD404448

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X